Gets or sets the horizontal alignment of the text.
Visual Basic (Declaration) | |
---|---|
Public Property TextAlign As ExpressionInfo |
C# | |
---|---|
public ExpressionInfo TextAlign {get; set;} |
Property Value
An ExpressionInfo object that evaluates to a TextAlign enumeration indicating the horizontal alignment of the text. Valid values are listed in the table below.
TextAlign | Description |
---|---|
General | The alignment is based on the content type. |
Left | Text is aligned to the left. |
Center | Text is centered in the control. |
Right | Text is aligned to the right. |
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