CGpBase.StringFormatFlagsmethod
Specifies text layout information (such as orientation and clipping) and display manipulations (such as ellipsis insertion, digit substitution, and representation of characters that are not supported by a font).
Description
The StringFormatFlags enumeration specifies text layout information (such as orientation and clipping) and display manipulations (such as ellipsis insertion, digit substitution, and representation of characters that are not supported by a font).
Remarks
Multiple flags set can produce combined effects:
When both StringFormatFlagsDirectionVertical and StringFormatFlagsDirectionRightToLeft are set, individual lines of text are drawn vertically. The first line starts at the right edge of the layout rectangle; the second line of text is to the left of the first line, and so on.
When StringFormatFlagsDirectionVertical is set and StringFormatFlagsDirectionRightToLeft is not set, individual lines of text are drawn vertically. The first line starts at the left edge of the layout rectangle; the second line of text is to the right of the first line.
When StringFormatFlagsDirectionRightToLeft is set and StringFormatFlagsDirectionVertical is not set, the individual lines of text are horizontal and the reading order is from right to left. This setting does not change the order in which characters are displayed, it simply specifies the order in which characters can be read.
The StringFormatFlagsDirectionVertical and StringFormatFlagsDirectionRightToLeft flags can affect string alignment.
The StringTrimming enumeration specifies how to trim characters from a string so that the string fits into a layout rectangle. The layout rectangle is used to position and size the display string.
Example
StringFormatFlagsDirectionRightToLeft = &h00000001 StringFormatFlagsDirectionVertical = &h00000002 StringFormatFlagsNoFitBlackBox = &h00000004 StringFormatFlagsDisplayFormatControl = &h00000020 StringFormatFlagsNoFontFallback = &h00000400 StringFormatFlagsMeasureTrailingSpaces = &h00000800 StringFormatFlagsNoWrap = &h00001000 StringFormatFlagsLineLimit = &h00002000 StringFormatFlagsNoClip = &h00004000
Reference
- Include file
CGdiPlus.inc - Documented in Graphics/GdiPlus Classes/CGdiPlus.md
- Topic: CGdiPlus