public final class EmfSetTextAlign extends EmfStateRecordType
The EMR_SETTEXTALIGN record specifies text alignment.
The EMR_SMALLTEXTOUT, EMR_EXTTEXTOUTA, and EMR_EXTTEXTOUTW records use text alignment values to position a string of text on the output medium. The values specify the relationship between a reference point and a rectangle that bounds the text. The reference point is either the current position or a point passed to a text output record. The rectangle that bounds the text is formed by the character cells in the text string.
Constructor and Description |
---|
EmfSetTextAlign()
Initializes a new instance of the
EmfSetTextAlign class. |
EmfSetTextAlign(EmfRecord source)
Initializes a new instance of the
EmfSetTextAlign class. |
Modifier and Type | Method and Description |
---|---|
int |
getTextAlignmentMode()
Gets or sets a 32-bit unsigned integer that specifies text alignment by
using a mask of text alignment flags.
|
void |
setTextAlignmentMode(int value)
Gets or sets a 32-bit unsigned integer that specifies text alignment by
using a mask of text alignment flags.
|
public EmfSetTextAlign(EmfRecord source)
Initializes a new instance of the EmfSetTextAlign
class.
source
- The source.public EmfSetTextAlign()
Initializes a new instance of the EmfSetTextAlign
class.
public int getTextAlignmentMode()
Gets or sets a 32-bit unsigned integer that specifies text alignment by
using a mask of text alignment flags. These are either Wmf.Consts.WmfTextAlignmentModeFlags
([MS-WMF] section 2.1.2.3) for text with a horizontal baseline, or Wmf.Consts.WmfVerticalTextAlignmentModeFlags
([MS-WMF] section 2.1.2.4) for text with a vertical
baseline. Only one value can be chosen from those that affect horizontal and vertical
alignment.
public void setTextAlignmentMode(int value)
Gets or sets a 32-bit unsigned integer that specifies text alignment by
using a mask of text alignment flags. These are either Wmf.Consts.WmfTextAlignmentModeFlags
([MS-WMF] section 2.1.2.3) for text with a horizontal baseline, or Wmf.Consts.WmfVerticalTextAlignmentModeFlags
([MS-WMF] section 2.1.2.4) for text with a vertical
baseline. Only one value can be chosen from those that affect horizontal and vertical
alignment.