IButtonProperties.Caption Property

Gets or sets the current IButton object's caption.

Namespace: DevExpress.XtraEditors.ButtonPanel

Assembly: DevExpress.Utils.v20.1.dll

Declaration

[DXCategory("Appearance")]
string Caption { get; set; }
<DXCategory("Appearance")>
Property Caption As String

Property Value

Type Description
String

A String value that is the current IButton object's caption.

Remarks

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

See Also