'Declaration
Public Enum TextFormat Inherits System.Enum
public enum TextFormat : System.Enum
'Declaration
Public Enum TextFormat Inherits System.Enum
public enum TextFormat : System.Enum
Member | Description |
---|---|
Bottom | Justifies the text to the bottom of the rectangle. This value is used only with the SingleLine value. |
Default | The default text format is "Top|Left". |
EditControl | Duplicates the text-displaying characteristics of a multiline edit control. Specifically, the average character width is calculated in the same manner as for an edit control, and the function does not display a partially visible last line. |
EndEllipsis | For displayed text, if the end of a string does not fit in the rectangle, it is truncated and ellipses are added. If a word that is not at the end of the string goes beyond the limits of the rectangle, it is truncated without ellipses. |
ExpandTabs | Expands tab characters. The default number of characters per tab is eight. |
ExternalLeading | Includes the font external leading in line height. Normally, external leading is not included in the height of a line of text. |
HidePrefix | Ignores the ampersand (&) prefix character in the text. The letter that follows will not be underlined, but other mnemonic-prefix characters are still processed. |
HorizontalCenter | Centers text horizontally in the rectangle. |
Left | Aligns text to the left. |
NoClip | Draws without clipping. |
NoFullWidthCharacterBreak | Prevents a line break at a DBCS (double-wide character string), so that the line breaking rule is equivalent to SBCS strings. |
NoPrefix | Turns off processing of prefix characters. |
PathEllipsis | For displayed text, replaces characters in the middle of the string with ellipses so that the result fits in the specified rectangle. If the string contains backslash (\) characters, PathEllipsis preserves as much as possible of the text after the last backslash. |
PrefixOnly | Draws only an underline at the position of the character following the ampersand (&) prefix character. |
Right | Aligns text to the right. |
RightToLeft | Layout in right-to-left reading order for bi-directional text when the font selected into the device context is a Hebrew or Arabic font. The default reading order for all text is left-to-right. |
SingleLine | Displays text on a single line only. Carriage returns and line feeds do not break the line. |
Top | Justifies the text to the top of the rectangle. |
VerticalCenter | Centers text vertically. This value is used only with the SingleLine value. |
WordBreak | Breaks words. Lines are automatically broken between words if a word would extend past the edge of the pecified rectangle. A carriage return-line feed sequence also breaks the line. |
WordEllipsis | Truncates any word that does not fit in the rectangle and adds ellipses. |
System.Object
System.ValueType
System.Enum
C1.Framework.Drawing.Gdi.DeviceContexts.TextFormat