Back to Devexpress

IButtonProperties.UseImage Property

windowsforms-devexpress-dot-xtraeditors-dot-buttonpanel-dot-ibuttonproperties-1f49de06.md

latest2.9 KB
Original Source

IButtonProperties.UseImage Property

Gets or sets whether the current IButton object’s icon is visible.

Namespace : DevExpress.XtraEditors.ButtonPanel

Assembly : DevExpress.Utils.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

csharp
[DXCategory("Appearance")]
bool UseImage { get; set; }
vb
<DXCategory("Appearance")>
Property UseImage As Boolean

Property Value

TypeDescription
Boolean

true if the current IButton object’s icon is visible; otherwise, false.

|

Remarks

Custom buttons can have text, specified via the IButtonProperties.Caption property, and a glyph (see the IButtonProperties.Image and IButtonProperties.ImageIndex properties). You can set whether only button text, or a glyph, or both of them should be displayed via the UseImage and IButtonProperties.UseCaption properties. If both text and glyph are shown, use the IButtonProperties.ImageLocation property to set their relative positions. See the Header Buttons and WindowsUI Custom Buttons topic to learn more.

See Also

Caption

Image

ImageIndex

UseCaption

ImageLocation

IButtonProperties Interface

IButtonProperties Members

DevExpress.XtraEditors.ButtonPanel Namespace