Bar

BarLargeButtonItem.CaptionAlignment Property

Gets or sets the position of the caption text relative to the image.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

[DefaultValue(BarItemCaptionAlignment.Bottom)]
public virtual BarItemCaptionAlignment CaptionAlignment { get; set; }
<DefaultValue(BarItemCaptionAlignment.Bottom)>
Public Overridable Property CaptionAlignment As BarItemCaptionAlignment

Property Value

Type Default Description
BarItemCaptionAlignment

Bottom

One of the BarItemCaptionAlignment enumeration values specifying caption text position.

Remarks

The images below display all possible variants of caption text positioning:

CaptionAlignment - Left CaptionAlignment - Top CaptionAlignment - Right CaptionAlignment - Bottom

Item caption can be set via its BarItem.Caption property. An image can be assigned using either the BarItem.ImageIndex, BarItem.Glyph, BarItem.LargeImageIndex or BarItem.LargeGlyph property.

See Also