Skip to main content

IButtonProperties.Caption Property

Gets or sets the current IButton object’s caption.

Namespace: DevExpress.XtraEditors.ButtonPanel

Assembly: DevExpress.Utils.v22.2.dll

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


string Caption { get; set; }

Property Value

Type Description

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


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