Back to Devexpress

BarBaseButtonItem.ImageToTextAlignment Property

windowsforms-devexpress-dot-xtrabars-dot-barbasebuttonitem-47fb0c4b.md

latest1.7 KB
Original Source

BarBaseButtonItem.ImageToTextAlignment Property

Specifies whether the bar item image should go before or after this item caption.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(BarItemImageToTextAlignment.BeforeText)]
[SupportedByRibbon(SupportedByRibbonKind.NonSupported)]
public virtual BarItemImageToTextAlignment ImageToTextAlignment { get; set; }
vb
<DefaultValue(BarItemImageToTextAlignment.BeforeText)>
<SupportedByRibbon(SupportedByRibbonKind.NonSupported)>
Public Overridable Property ImageToTextAlignment As BarItemImageToTextAlignment

Property Value

TypeDefaultDescription
DevExpress.XtraBars.BarItemImageToTextAlignmentBeforeText

Specifies whether the image should be drawn before or after the item text.

|

Remarks

The ImageToTextAlignment property is not available when the button is hosted inside a Ribbon.

The figure below illustrates buttons with different ImageToTextAlignment property values; buttons are displayed in a regular toolbar.

See Also

BarBaseButtonItem Class

BarBaseButtonItem Members

DevExpress.XtraBars Namespace