GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoText Class / Alignment Property
In This Topic
    Alignment Property (GoText)
    In This Topic
    Gets or sets how the text is aligned.
    Syntax
    [Category("Appearance")]
    [DefaultValue(2)]
    [Description("The text alignment.")]
    public virtual int Alignment {get; set;}

    Property Value

    This defaults to TopLeft; you can use any of the predefined GoObject spot values.
    Remarks
    This property governs how each line of text is positioned in the bounding rectangle. In addition this property specifies the Location for this object. The value of this property is not changed by the value of RightToLeft or Control.RightToLeft for any GoView. However, the GoView.RightToLeft or RightToLeft property does affect where the text is drawn for that view. When GoView.RightToLeft property value is RightToLeft.Yes, or when RightToLeftFromView is false and RightToLeft is true, then text whose Alignment is on the left (such as TopLeft) will actually be drawn right-aligned.
    See Also