Skip to main content
All docs
V19.1

DevExpress v24.1 Update — Your Feedback Matters

Our What's New in v24.1 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

HTML Property Editor Module

  • 3 minutes to read

Important

The HTML Property Editor Windows Forms Module is required for compatibility with legacy WinForms XAF applications. If you create a new application, use the Office Module instead. With this module, you can edit HTML-formatted text in WinForms applications. It also supports RTF and DOCX formats. Refer to the Use Rich Text Documents in Business Objects topic for more information.

The HTML Property Editor Module contains Property Editors which allow end-users to visually format string property values using Hypertext Markup Language (HTML). This topic describes this module’s structure.

HTMLPropertyEditor_WinWeb

The Property Editors described here are demonstrated in the Feature Center Demo’s Property Editors section (installed with XAF). The Feature Center demo is installed in %PUBLIC%\Documents\DevExpress Demos 19.1\Components\eXpressApp Framework\FeatureCenter by default. The ASP.NET version of this demo is available online at https://demos.devexpress.com/XAF/FeatureCenter/.

#HTML Property Editor Module Components

The HTML Property Editor Module provides the following platform-specific components:

HtmlPropertyEditorModule_Toolbar

Note

  • You can add modules to your application when you create a new XAF solution using the Solution Wizard. To do this, select modules in the Choose Extra Modules step.

  • To add an extra module in code, add it to the XafApplication.Modules or ModuleBase.RequiredModuleTypes list (adding a reference to the module assembly is insufficient).
  • When using the HtmlPropertyEditorWindowsFormsModule in your application, ensure that the Microsoft.mshtml.dll primary interop assembly is installed on the end user’s computer. To deploy this assembly, use the vs_piaredist.exe package in the %PROGRAMFILES(x86)%\Common Files\Merge Modules folder (default). If the package does not exist in this folder, download the PIARedist.exe file from the Microsoft site.

#Property Editors Provided by the HTML Property Editor Module

This Module provides the following platform-specific Property Editors:

Platform Property Editor Description
Win HtmlPropertyEditor WinForms applications’ Property Editor has two tabs: the Design tab has an instrument panel which allows you to format a string using HTML tags; the HTML tab displays plain HTML code.
Web ASPxHtmlPropertyEditor The ASPxHtmlPropertyEditor Property Editor uses the ASPxHtmlEditor control which has a Design and HTML tab, as well as a Preview tab that displays the rendered HTML.

The Property Editors this Module provides are intended for String Properties and should be used in Detail Views only. To use it in a specific Detail View, invoke the Model Editor for the WinForms or ASP.NET application project and set the required Views | <DetailView> | Items | <PropertyEditor> node’s PropertyEditorType property to DevExpress.ExpressApp.HtmlPropertyEditor.Win.HtmlPropertyEditor or DevExpress.ExpressApp.HtmlPropertyEditor.Web.ASPxHtmlPropertyEditor.

See Also