ContextButtonBase.AllowHtmlText Property
Gets or sets whether the current button’s caption is formatted using HTML tags.
Namespace: DevExpress.Utils
Assembly: DevExpress.Utils.v24.1.dll
NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core
Declaration
[DefaultValue(DefaultBoolean.Default)]
[DXCategory("Appearance")]
public DefaultBoolean AllowHtmlText { get; set; }
Property Value
Type | Default | Description |
---|---|---|
DefaultBoolean | Default | A DefaultBoolean enumeration value that specifies whether the current button’s caption is formatted using HTML tags. |
Available values:
Name | Description | Return Value |
---|---|---|
True | The value is true. |
|
False | The value is false. |
|
Default | The value is specified by a global option or a higher-level object. |
|
Remarks
The button caption specified by the ContextButtonBase.Caption property can be formatted using HTML tags. Set the AllowHtmlText property to True to enable this feature. If this property is set to Default, the feature is controlled by the owner control. To specify the global setting, use the corresponding property, accessible using the ContextButtonOptions property of the owner control. The AllowHtmlText property overrides the global setting for the current button.
HTML formatting allows you to display hyperlinks in the button caption using the href tag. See the ContextButtonBase.HyperlinkClick event to learn how to handle a click on a hyperlink.
For detailed information on supported HTML tags, see the HTML Text Formatting topic.