GetProperty¶
Description
Gets a part of the print settings.
There are 2 types of syntax to get the print settings: the syntax that uses the property ID defined in PropertyId, and the syntax that specifies it as a numerical value.
With the syntax (a), the API gets a part of the print settings of the property using the property ID defined in PropertyId.
With the syntax (b), the API gets a part of the print settings of the property by specifying the property ID as a numerical value.
Syntax
(a) ErrorCode GetProperty( IntPtr devmode, PropertyId id, byte[] data, ref uint size )
(b) ErrorCode GetProperty( IntPtr devmode, byte id, byte[] data, ref uint size )
Parameter
devmode
Devmode address
Specify the Devmode address.
id
Property ID
Specify the property ID of the print settings to get.
Specify (a) when using the property ID defined in PropertyId.
Specify (b) when specifying the property ID as a numerical value.
See "Property ID" for specifiable values.
data
Buffer of data to get
Specify the buffer that stores the retrieved print settings.
size
Size of data to get
Specifies the buffer size to store the print settings.
When the control returns from the API, the data size of the retrieved print settings is stored.
Return value
Returns an error code. See "Error Code List" for details of the error code.