Skip to main content

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.v23.1.dll

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


public string HtmlText { get; set; }

Property Value

Type Default Description
String String.Empty

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


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>”:


See Also