Calendar for WinForms | ComponentOne
C1.Framework.Drawing.Gdi.DeviceContexts Namespace / TextFormat Enumeration

In This Topic
    TextFormat Enumeration
    In This Topic
    Specifies the method of formatting the text.
    Syntax
    'Declaration
     
    
    Public Enum TextFormat 
       Inherits System.Enum
    public enum TextFormat : System.Enum 
    Members
    MemberDescription
    BottomJustifies the text to the bottom of the rectangle. This value is used only with the SingleLine value.
    DefaultThe default text format is "Top|Left".
    EditControlDuplicates 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.
    EndEllipsisFor 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.
    ExpandTabsExpands tab characters. The default number of characters per tab is eight.
    ExternalLeadingIncludes the font external leading in line height. Normally, external leading is not included in the height of a line of text.
    HidePrefixIgnores the ampersand (&) prefix character in the text. The letter that follows will not be underlined, but other mnemonic-prefix characters are still processed.
    HorizontalCenterCenters text horizontally in the rectangle.
    LeftAligns text to the left.
    NoClipDraws without clipping.
    NoFullWidthCharacterBreakPrevents a line break at a DBCS (double-wide character string), so that the line breaking rule is equivalent to SBCS strings.
    NoPrefixTurns off processing of prefix characters.
    PathEllipsisFor 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.
    PrefixOnlyDraws only an underline at the position of the character following the ampersand (&) prefix character.
    RightAligns text to the right.
    RightToLeftLayout 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.
    SingleLineDisplays text on a single line only. Carriage returns and line feeds do not break the line.
    TopJustifies the text to the top of the rectangle.
    VerticalCenterCenters text vertically. This value is used only with the SingleLine value.
    WordBreakBreaks 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.
    WordEllipsisTruncates any word that does not fit in the rectangle and adds ellipses.
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             C1.Framework.Drawing.Gdi.DeviceContexts.TextFormat

    See Also