XtraForm.HtmlText Property

Allows you to specify the form's caption and format it using HTML tags. The property is in effect when the Form Title Bar Skinning feature is applied.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v20.1.dll

Declaration

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

Property Value

Type Default Description
String

String.Empty

A string that specifies the form's caption, formatted using HTML tags.

Remarks

The HtmlText property allows you to format a form's caption using HTML tags (when the Form Title Bar Skinning feature is applied). For instance, you can display part of the text in bold or italic font. When you set the HtmlText property, the XtraForm.Text property is automatically assigned plain text, which is the result of excluding all HTML tags and non-text content from HtmlText.

If you set the XtraForm.Text property directly, the HtmlText property will be cleared.

The following image shows a sample XtraForm, whose HtmlText property is set to "<b>DX Editor"</b> - "<i>Layout.xml"</i>":

XtraForm-HtmlText

See Also