ContextButtonBase.Caption Property

Gets or sets the current button's caption.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v20.1.dll

Declaration

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

Property Value

Type Default Description
String

String.Empty

A string value that specifies the current button's caption.

Remarks

Use the Caption property to specify the caption for the current button.

The ContextButtonBase.AllowHtmlText property allows you to specify whether the button's caption is formatted using HTML tags. For instance, you can display a hyperlink in the caption using the href tag and handle the ContextButtonBase.HyperlinkClick event to respond clicking on it. To specify the hyperlink color, use the ContextButtonBase.HyperLinkColor property.

You can also specify the button's glyph in the normal, hovered and pressed states using the ContextItem.Glyph, ContextItem.HoverGlyph and ContextButton.PressedGlyph properties, respectively.

See Also