DataFormatOptions.AllowHtml Property
Gets or sets whether to copy or paste HTML content.
Namespace: DevExpress.XtraRichEdit
Assembly: DevExpress.RichEdit.v20.2.Core.dll
NuGet Package: DevExpress.RichEdit.Core
NuGet Packages: DevExpress.RichEdit.Core, DevExpress.WindowsDesktop.RichEdit.Core
Declaration
Property Value
Type | Default | Description |
---|---|---|
Boolean | **false** | True, to allow copying or pasting HTML content; otherwise, false. |
Property Paths
You can access this nested property as listed below:
Library | Object Type | Path to AllowHtml |
---|---|---|
WinForms Controls | SnapControlOptions |
|
RichEditControlOptions |
|
|
WPF Controls | RichEditControlOptions |
|
Office File API | RichEditControlOptionsBase |
|
Remarks
Set the AllowHtml property to true to allow HTML content in the Clipboard. Certain applications require pasting with HTML format for inserting images. Use the DataFormatOptions.HtmlImageSourceType property to specify whether images are encoded and embedded in HTML markup or extracted as files to the DataFormatOptions.HtmlImagePath location.