Encapsulates text layout information (such as alignment, orientation, tab stops, and clipping) and display manipulations (such as trimming, font substitution for characters that are not supported by the requested font, and digit substitution for languages that do not use Western European digits). A TRSGPStringFormatRec record can be passed to the TRSGPCanvas.DrawText methods to format a string.
Namespace: RSGdiPlusGraphicsTypes
Delphi
|
type
TRSGPStringFormatRec = record
end;
|
|
Name
|
Description
|
|
Assign(TRSGPStringFormatRec)
|
Copies the aRec String Format record to the current record
|
|
CreateTypographic
|
Creates a generic, typographic string format record. A generic, typographic StringFormat object has the following characteristics:
• String format flags sffLineLimit, sffNoClip, and sffNoFitBlackBox are set. • Character alignment and line alignment are set to saNear. • Language ID is set to neutral language, which means that the current language associated with the calling thread is used. • String digit substitution is set to sdsUser. • Hot key prefix is set to hpNone. • Number of tab stops is set to zero. • String trimming is set to stNone. |
|
Top
|
|
Name
|
Description
|
|
Align
|
Indicates the character alignment of this String Format record in relation to the origin of the layout rectangle. A layout rectangle is used to position the displayed string.
|
|
DigitSubstitutionLanguage
|
Specifies the language that corresponds with the digits that are to be substituted for Western European digits.
|
|
DigitSubstitutionMethod
|
Indicates the digit substitution method that is used by this String Format record.
|
|
FirstTabOffset
|
Specifies the initial tab offset position. This initial offset position is relative to the string's origin and the offset of the first tab stop is relative to the initial offset position..
|
|
Flags
|
Specifies the string format flags for this String Format record.
|
|
HotkeyPrefix
|
Indicates the type of processing that is performed on a string when a hot key prefix, an ampersand (&), is encountered.
|
|
LineAlign
|
Indicates the line alignment of this String Format record in relation to the origin of the layout rectangle. The line alignment setting specifies how to align the string vertically in the layout rectangle. The layout rectangle is used to position the displayed string.
|
|
MeasurableCharacterRanges
|
Sets a series of character ranges for this String Format record that, when in a string, can be measured by the MeasureCharacterRanges method.
|
|
TabStops
|
Sets the offsets for tab stops in this String Format record.
|
|
Trimming
|
Indicates the trimming style of this String Format record. The trimming style determines how to trim characters from a string that is too large to fit in the layout rectangle.
|
Top
|