GoDiagram Web Reference
Alignment Property (GoText)

Gets or sets how the text is aligned.
Syntax
'Declaration
 
<CategoryAttribute("Appearance")>
<DefaultValueAttribute()>
<DescriptionAttribute("The text alignment.")>
Public Overridable Property Alignment As Integer
[CategoryAttribute("Appearance")]
[DefaultValueAttribute()]
[DescriptionAttribute("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.
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

GoText Class
GoText Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback