Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IHtmlFormattingSupport Interface

In This Article

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

#Declaration

public interface IHtmlFormattingSupport

#Remarks

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