Back to Devexpress

BackstageViewItem.CaptionHorizontalAlignment Property

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-backstageviewitem-956ecb37.md

latest3.4 KB
Original Source

BackstageViewItem.CaptionHorizontalAlignment Property

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

Declaration

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

Property Value

TypeDefaultDescription
DevExpress.Utils.Drawing.ItemHorizontalAlignmentDefault

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

BackstageViewControl.CaptionHorizontalAlignment

BackstageViewControl.CaptionVerticalAlignment

GlyphHorizontalAlignment

BackstageViewControl.GlyphLocation

GlyphToCaptionIndent

GlyphVerticalAlignment

Caption

BackstageViewItem.CaptionHorizontalAlignment

BackstageViewItem.CaptionVerticalAlignment

BackstageViewItem.GlyphLocation

BackstageViewItem Class

BackstageViewItem Members

DevExpress.XtraBars.Ribbon Namespace