Skip to main content
.NET 6.0+

IHtmlFormattingSupport Interface

Declares members implemented by Windows Forms List Editors and View Items that support HTML formatting of the display text.

Namespace: DevExpress.ExpressApp.Win.SystemModule

Assembly: DevExpress.ExpressApp.Win.v24.1.dll

NuGet Package: DevExpress.ExpressApp.Win


public interface IHtmlFormattingSupport


Certain Windows Forms controls can display an HTML formatted text, either according to the HTML tags or as a plain text. XAF provides an easy way to enable HTML formatting in List Editors and View Items that use such controls. To enable HTML formatting, set the IModelOptionsEnableHtmlFormatting.EnableHtmlFormatting property of the Application Model‘s Options node to true. This affects all the List Editors and View Items that implement the IHtmlFormattingSupport interface.

The IHtmlFormattingSupport interface exposes a single IHtmlFormattingSupport.SetHtmlFormattingEnabled method that enables or disables HTML formatting.

When implementing a custom List Editor or a View Item, support this interface if the control you are using can format the display text according to Hyper Text Markup Language.

To learn more about the HTML Formatting feature, refer to the How to: Apply HTML Formatting to Windows Forms XAF UI Elements topic.

See Also