public final class EmfPlusDrawString extends EmfPlusDrawingRecordType
The EmfPlusDrawString record specifies text output with string formatting
Constructor and Description |
---|
EmfPlusDrawString(EmfPlusRecord source)
Initializes a new instance of the
EmfPlusDrawString class. |
Modifier and Type | Method and Description |
---|---|
int |
getBrushId()
Gets or sets the brush identifier
A 32-bit unsigned integer that specifies the brush, the content of which
is determined by the S bit in the Flags field.
|
int |
getFormatId()
Gets or sets the format identifier
A 32-bit unsigned integer that specifies the index of an optional
EmfPlusStringFormat object (section 2.2.1.9) in the EMF+ Object Table.
|
RectangleF |
getLayoutRect()
Gets or sets the layout rect
An EmfPlusRectF object (section 2.2.2.39) that defines the bounding area
of the destination that will receive the string
|
int |
getLength()
Gets or sets the length
32-bit unsigned integer that specifies the number of characters in the string.
|
byte |
getObjectId()
Gets or sets the object identifier.
|
String |
getStringData()
Gets or sets the string data
An array of 16-bit Unicode characters that specifies the string to be drawn
|
boolean |
isColor()
Gets or sets a value indicating whether this instance is color.
|
void |
setBrushId(int value)
Gets or sets the brush identifier
A 32-bit unsigned integer that specifies the brush, the content of which
is determined by the S bit in the Flags field.
|
void |
setColor(boolean value)
Gets or sets a value indicating whether this instance is color.
|
void |
setFormatId(int value)
Gets or sets the format identifier
A 32-bit unsigned integer that specifies the index of an optional
EmfPlusStringFormat object (section 2.2.1.9) in the EMF+ Object Table.
|
void |
setLayoutRect(RectangleF value)
Gets or sets the layout rect
An EmfPlusRectF object (section 2.2.2.39) that defines the bounding area
of the destination that will receive the string
|
void |
setLength(int value)
Gets or sets the length
32-bit unsigned integer that specifies the number of characters in the string.
|
void |
setObjectId(byte value)
Gets or sets the object identifier.
|
void |
setStringData(String value)
Gets or sets the string data
An array of 16-bit Unicode characters that specifies the string to be drawn
|
getDataSize, getFlags, getSize, getType, setDataSize, setFlags, setSize
public EmfPlusDrawString(EmfPlusRecord source)
Initializes a new instance of the EmfPlusDrawString
class.
source
- The source.public boolean isColor()
Gets or sets a value indicating whether this instance is color. If set, BrushId specifies a color as an EmfPlusARGB object (section 2.2.2.1). If clear, BrushId contains the index of an EmfPlusBrush object (section 2.2.1.1) in the EMF+ Object Table.
Value:true
if this instance is color; otherwise, false
.public void setColor(boolean value)
Gets or sets a value indicating whether this instance is color. If set, BrushId specifies a color as an EmfPlusARGB object (section 2.2.2.1). If clear, BrushId contains the index of an EmfPlusBrush object (section 2.2.1.1) in the EMF+ Object Table.
Value:true
if this instance is color; otherwise, false
.public byte getObjectId()
Gets or sets the object identifier. The index of an EmfPlusFont object (section 2.2.1.3) in the EMF+ Object Table to render the text. The value MUST be zero to 63, inclusive.
Value: The object identifier.public void setObjectId(byte value)
Gets or sets the object identifier. The index of an EmfPlusFont object (section 2.2.1.3) in the EMF+ Object Table to render the text. The value MUST be zero to 63, inclusive.
Value: The object identifier.public int getBrushId()
Gets or sets the brush identifier A 32-bit unsigned integer that specifies the brush, the content of which is determined by the S bit in the Flags field. This definition is used to paint the foreground text color; that is, just the glyphs themselves.
public void setBrushId(int value)
Gets or sets the brush identifier A 32-bit unsigned integer that specifies the brush, the content of which is determined by the S bit in the Flags field. This definition is used to paint the foreground text color; that is, just the glyphs themselves.
public int getFormatId()
Gets or sets the format identifier A 32-bit unsigned integer that specifies the index of an optional EmfPlusStringFormat object (section 2.2.1.9) in the EMF+ Object Table. This object specifies text layout information and display manipulations to be applied to a string
public void setFormatId(int value)
Gets or sets the format identifier A 32-bit unsigned integer that specifies the index of an optional EmfPlusStringFormat object (section 2.2.1.9) in the EMF+ Object Table. This object specifies text layout information and display manipulations to be applied to a string
public int getLength()
Gets or sets the length 32-bit unsigned integer that specifies the number of characters in the string.
public void setLength(int value)
Gets or sets the length 32-bit unsigned integer that specifies the number of characters in the string.
public RectangleF getLayoutRect()
Gets or sets the layout rect An EmfPlusRectF object (section 2.2.2.39) that defines the bounding area of the destination that will receive the string
public void setLayoutRect(RectangleF value)
Gets or sets the layout rect An EmfPlusRectF object (section 2.2.2.39) that defines the bounding area of the destination that will receive the string
public String getStringData()
Gets or sets the string data An array of 16-bit Unicode characters that specifies the string to be drawn
public void setStringData(String value)
Gets or sets the string data An array of 16-bit Unicode characters that specifies the string to be drawn