Input for WinForms | ComponentOne
C1.Framework.Drawing.Gdi.DeviceContexts Namespace / TextAlignment Enumeration

In This Topic
    TextAlignment Enumeration
    In This Topic
    Specifies the text alignment by using a mask of the values in the following list. Only one flag can be chosen from those that affect horizontal and vertical alignment.
    Syntax
    'Declaration
     
    
    Public Enum TextAlignment 
       Inherits System.Enum
    public enum TextAlignment : System.Enum 
    Members
    MemberDescription
    BaselineThe reference point will be on the base line of the text.
    BottomThe reference point will be on the bottom edge of the bounding rectangle.
    CenterThe reference point will be aligned horizontally with the center of the bounding rectangle.
    LeftThe reference point will be on the left edge of the bounding rectangle.
    RightThe reference point will be on the right edge of the bounding rectangle.
    TopThe reference point will be on the top edge of the bounding rectangle.
    Inheritance Hierarchy

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

    See Also