GoDiagram Win Reference
TextAlignment Property

Gets or sets the alignment of the text on the ruler.
Syntax
'Declaration
 
<DefaultValueAttribute()>
<DescriptionAttribute("The alignment of the text on the ruler.")>
<CategoryAttribute("Ruler Appearance")>
Public Overridable Property TextAlignment As ContentAlignment
[DefaultValueAttribute()]
[DescriptionAttribute("The alignment of the text on the ruler.")]
[CategoryAttribute("Ruler Appearance")]
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.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GoRuler Class
GoRuler Members

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback