Back to Devexpress

BarLargeButtonItem.CaptionAlignment Property

windowsforms-devexpress-dot-xtrabars-dot-barlargebuttonitem-12cb8ddf.md

latest3.3 KB
Original Source

BarLargeButtonItem.CaptionAlignment Property

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

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDefaultDescription
BarItemCaptionAlignmentBottom

One of the BarItemCaptionAlignment enumeration values specifying caption text position.

|

Available values:

NameDescription
Left

Positions the item’s caption text to the left of the image.

| | Top |

Positions the item’s caption text above the image.

| | Right |

Positions the item’s caption text to the right of the image.

| | Bottom |

Positions the item’s caption text under the image.

|

Remarks

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

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

See Also

Caption

ImageIndex

LargeImageIndex

Glyph

LargeImage

BarLargeButtonItem Class

BarLargeButtonItem Members

DevExpress.XtraBars Namespace