Skip to main content

BackstageViewControl.CaptionHorizontalAlignment Property

Gets or sets the horizontal alignment of items’ caption regions.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(ItemHorizontalAlignment.Default)]
[DXCategory("Appearance")]
public ItemHorizontalAlignment CaptionHorizontalAlignment { get; set; }

Property Value

Type Default Description
DevExpress.Utils.Drawing.ItemHorizontalAlignment Default

An DevExpress.Utils.Drawing.ItemHorizontalAlignment value that specifies the horizontal alignment of items’ caption regions.

Remarks

The CaptionHorizontalAlignment property specifies the horizontal alignment of items’ caption regions. You can also specify the alignment of individual caption regions via the BackstageViewItem.CaptionHorizontalAlignment property.

To align text within the caption region, use the TextOptions.HAlignment setting that is available via the BackstageViewItemBase.Appearance, BackstageViewItemBase.AppearanceDisabled, BackstageViewItemBase.AppearanceHover and BackstageViewTabItem.AppearanceSelected properties.

See Also