TextAlign Property
- Namespace
TXTextControl.Windows. Forms. Ribbon
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Gets or sets how text is aligned in the text box. The default value is HorizontalAlignment.Left.
Syntax
public System.Windows.Forms.HorizontalAlignment TextAlign { get; set; }Public Property TextAlign As System.Windows.Forms.HorizontalAlignmentExamples
The following example uses RibbonTextBox.TextAlign to configure text align as part of the ribbon text box workflow. The change is then applied to the active document or user interface.
ribbonTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
ribbonTextBox.Update();ribbonTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
ribbonTextBox.Update()