BackstageViewItem.CaptionHorizontalAlignment Property

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

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

[DefaultValue(ItemHorizontalAlignment.Default)]
public ItemHorizontalAlignment CaptionHorizontalAlignment { get; set; }
<DefaultValue(ItemHorizontalAlignment.Default)>
Public Property CaptionHorizontalAlignment As ItemHorizontalAlignment

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