windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-backstageviewitem-4d12da5e.md
Gets or sets the vertical alignment of the item’s caption region.
Namespace : DevExpress.XtraBars.Ribbon
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DefaultValue(ItemVerticalAlignment.Default)]
public ItemVerticalAlignment CaptionVerticalAlignment { get; set; }
<DefaultValue(ItemVerticalAlignment.Default)>
Public Property CaptionVerticalAlignment As ItemVerticalAlignment
| Type | Default | Description |
|---|---|---|
| DevExpress.Utils.Drawing.ItemVerticalAlignment | Default |
An DevExpress.Utils.Drawing.ItemVerticalAlignment value that specifies the caption vertical alignment.
|
By default, the vertical alignment of caption regions within all items is specified by the BackstageViewControl.CaptionVerticalAlignment property. The CaptionVerticalAlignment property allows you to override this setting for individual items.
To align text within the caption region, use the TextOptions.VAlignment 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