public final class EmfNamedEscape extends EmfEscapeRecordType
The MR_NAMEDESCAPE record passes arbitrary information to a specified printer driver.
Constructor and Description |
---|
EmfNamedEscape(EmfRecord source)
Initializes a new instance of the
EmfNamedEscape class. |
Modifier and Type | Method and Description |
---|---|
int |
getCjDriver()
Gets or sets A 32-bit unsigned integer that specifies the number of bytes in the
DriverName field.
|
int |
getCjIn()
Gets or sets A 32-bit unsigned integer specifying the number of bytes to pass to the printer driver.
|
byte[] |
getData()
Gets or sets The data to pass to the printer driver.
|
String |
getDriverName()
Gets or sets A string of 16-bit Unicode characters that specifies the name of the
printer driver that will receive data.
|
void |
setCjDriver(int value)
Gets or sets A 32-bit unsigned integer that specifies the number of bytes in the
DriverName field.
|
void |
setCjIn(int value)
Gets or sets A 32-bit unsigned integer specifying the number of bytes to pass to the printer driver.
|
void |
setData(byte[] value)
Gets or sets The data to pass to the printer driver.
|
void |
setDriverName(String value)
Gets or sets A string of 16-bit Unicode characters that specifies the name of the
printer driver that will receive data.
|
getIEscape, setIEscape
public EmfNamedEscape(EmfRecord source)
Initializes a new instance of the EmfNamedEscape
class.
source
- The source.public int getCjDriver()
Gets or sets A 32-bit unsigned integer that specifies the number of bytes in the DriverName field. This value MUST be an even number.
public void setCjDriver(int value)
Gets or sets A 32-bit unsigned integer that specifies the number of bytes in the DriverName field. This value MUST be an even number.
public int getCjIn()
Gets or sets A 32-bit unsigned integer specifying the number of bytes to pass to the printer driver.
public void setCjIn(int value)
Gets or sets A 32-bit unsigned integer specifying the number of bytes to pass to the printer driver.
public String getDriverName()
Gets or sets A string of 16-bit Unicode characters that specifies the name of the printer driver that will receive data. This value MUST be cjDriver bytes long, and it MUST be terminated with a null character.
public void setDriverName(String value)
Gets or sets A string of 16-bit Unicode characters that specifies the name of the printer driver that will receive data. This value MUST be cjDriver bytes long, and it MUST be terminated with a null character.
public byte[] getData()
Gets or sets The data to pass to the printer driver. There MUST be cjIn bytes available.
public void setData(byte[] value)
Gets or sets The data to pass to the printer driver. There MUST be cjIn bytes available.