Skip to main content
A newer version of this page is available. .

DataFormatOptions.AllowHtml Property

Gets or sets whether the copied document range is available for pasting in HTML format.

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.RichEdit.v18.2.Core.dll

Declaration

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

Property Value

Type Default Description
Boolean **false**

True, to allow HTML format for the content copied to the Clipboard; 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