Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

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

Declaration

[DefaultValue(false)]
public bool AllowHtml { get; set; }

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
.ClipboardFormats .AllowHtml
RichEditControlOptions
.ClipboardFormats .AllowHtml
WPF Controls RichEditControlOptions
.ClipboardFormats .AllowHtml
Office File API RichEditControlOptionsBase
.ClipboardFormats .AllowHtml

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.

See Also