GoDigram for .NET Framework and .NET Core
Northwoods.Go.Draw Namespace / GoRuler Class / TextAlignment Property
In This Topic
    TextAlignment Property
    In This Topic
    Gets or sets the alignment of the text on the ruler.
    Syntax
    [Description("The alignment of the text on the ruler.")]
    [Category("Ruler Appearance")]
    [DefaultValue(Mono.Cecil.CustomAttributeArgument)]
    public virtual ContentAlignment TextAlignment {get; set;}

    Property Value

    The default value is ContentAlignment.TopRight.
    Remarks
    The TextAlignment property determines the position of the text around each interval mark. Note that when the ruler is short/narrow, there might not be much difference in the vertical positioning of the text. Furthermore, because of how text is drawn with some spacing above and below the glyphs, the text may appear to be centered in a suprising manner.
    See Also