Back to Devexpress

XtraForm.HtmlText Property

windowsforms-devexpress-dot-xtraeditors-dot-xtraform-9c55c678.md

latest2.6 KB
Original Source

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.v25.2.dll

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

Declaration

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

Property Value

TypeDefaultDescription
StringString.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>”:

See Also

Text

HtmlImages

HTML-inspired Text Formatting

XtraForm Class

XtraForm Members

DevExpress.XtraEditors Namespace