Skip to main content
A newer version of this page is available. .

XtraBaseArgs.AllowHtmlText Property

Gets or sets whether the shown object supports HTML-inspired Text Formatting.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

public DefaultBoolean AllowHtmlText { get; set; }

Property Value

Type Description
DefaultBoolean

Specifies whether HTML tags are accepted.

Available values:

Name Description
True

Corresponds to a Boolean value of true.

False

Corresponds to a Boolean value of false.

Default

The value is determined by the current object’s parent object setting (e.g., a control setting).

Remarks

The code below uses HTML tags to format both XtraMessageBox caption and content texts.

XtraMessageBoxArgs xma = new XtraMessageBoxArgs();
xma.Caption = "<b><color=green>Greed Bold Title</color></b>";
xma.Text = "<color=red><size=+4>Increased red content text</size></color>";
xma.AllowHtmlText = DevExpress.Utils.DefaultBoolean.True;
XtraMessageBox.Show(xma);
See Also