IButtonProperties.UseCaption Property

Gets or sets whether the current IButton object's IButtonProperties.Caption is visible.

Namespace: DevExpress.XtraEditors.ButtonPanel

Assembly: DevExpress.Utils.v20.1.dll


bool UseCaption { get; set; }
Property UseCaption As Boolean

Property Value

Type Description

true if the current IButton object's IButtonProperties.Caption 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 UseCaption and IButtonProperties.UseImage 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