Version

TextAlign Property (Style)

Determines the alignment of text displayed by a Toolbar item.
Syntax
'Declaration
 
Public Property TextAlign As TextAlign
public TextAlign TextAlign {get; set;}
Remarks

The default text alignment applied to Toolbar items is Center, because the length of any text within them is generally static (it does not change) and they can consistently appear centered within the item's allocated Width. If the length of text for an item (label, text box, etc.) is subject to change, then designers may consider setting a value from the TextAlign enumeration to this property to make the Toolbar item appear consistent across changes. This layout may additionally involve increasing the Margin.Left to add space between left-aligned text and the previous Toolbar item.

UltraWebToolbar does not auto-detect whether the end user's cultural settings suggest a left-to-right or right-to-left writing system. Developers with this requirement may institute RTL language detection by reading the UserLanguages off of the HTTP request during the initial Page_Load, and setting TextAlign on the Toolbar items as appropriate.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, 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