Skip to main content
A newer version of this page is available. .

BackstageViewItem.CaptionHorizontalAlignment Property

Gets or sets the horizontal alignment of the item’s caption region.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v18.2.dll

Declaration

[DefaultValue(ItemHorizontalAlignment.Default)]
[SmartTagProperty("Caption Horizontal Alignment", "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 caption horizontal alignment.

Remarks

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