HTML Property Editor Module

Important

The HTML Property Editor Windows Forms Module is required to provide 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 18.1\Components\eXpressApp Framework\FeatureCenter by default. The ASP.NET version of this demo is available online at http://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 a module in the Solution Wizard when creating a new XAF solution by selecting a module 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