Skip to main content

IButtonProperties.UseImage Property

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

Namespace: DevExpress.XtraEditors.ButtonPanel

Assembly: DevExpress.Utils.v22.2.dll

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


bool UseImage { get; set; }

Property Value

Type Description

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


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