windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-backstageviewitem-956ecb37.md
Gets or sets the horizontal alignment of the item’s caption region.
Namespace : DevExpress.XtraBars.Ribbon
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DefaultValue(ItemHorizontalAlignment.Default)]
public ItemHorizontalAlignment CaptionHorizontalAlignment { get; set; }
<DefaultValue(ItemHorizontalAlignment.Default)>
Public Property CaptionHorizontalAlignment As ItemHorizontalAlignment
| Type | Default | Description |
|---|---|---|
| DevExpress.Utils.Drawing.ItemHorizontalAlignment | Default |
An DevExpress.Utils.Drawing.ItemHorizontalAlignment value that specifies the caption horizontal alignment.
|
By default, the horizontal alignment of caption regions within all items is specified by the BackstageViewControl.CaptionHorizontalAlignment property. The CaptionHorizontalAlignment property allows you to override this setting for individual items.
To align text within the caption region, use the TextOptions.HAlignment setting, available via the BackstageViewItemBase.Appearance, BackstageViewItemBase.AppearanceDisabled, BackstageViewItemBase.AppearanceHover and BackstageViewTabItem.AppearanceSelected properties.
See Also
BackstageViewControl.CaptionHorizontalAlignment
BackstageViewControl.CaptionVerticalAlignment
BackstageViewControl.GlyphLocation
BackstageViewItem.CaptionHorizontalAlignment
BackstageViewItem.CaptionVerticalAlignment