HorizontalContentAlignment 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 the ribbon group's horizontal content alignment. The default value is TXTextControl.HorizontalAlignment.Left.
Syntax
public HorizontalAlignment HorizontalContentAlignment { get; set; }Public Property HorizontalContentAlignment As HorizontalAlignmentMembers
| Value | Description |
|---|---|
| Left | The content is left aligned. |
| Right | The content is right aligned. |
| Center | The content is centered. |
| Justify | This value cannot be used with this property. |
Examples
The following example uses RibbonGroup.HorizontalContentAlignment to configure horizontal content alignment as part of the ribbon group workflow. The change is then applied to the active document or user interface.
ribbonGroup.HorizontalContentAlignment = TXTextControl.HorizontalAlignment.Center;
ribbonGroup.Update();ribbonGroup.HorizontalContentAlignment = TXTextControl.HorizontalAlignment.Center
ribbonGroup.Update()