RichEditControlOptionsBase.ClipboardFormats Property
Gets the data formats currently available on the Clipboard.
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 | Description |
---|---|
DataFormatOptions | A DataFormatOptions object. |
Property Paths
You can access this nested property as listed below:
Library | Object Type | Path to ClipboardFormats |
---|---|---|
WinForms Controls | SnapControl |
|
RichEditControl |
|
|
WPF Controls | RichEditControl |
|
Office File API | IRichEditDocumentServer |
|
RichEditDocumentServer |
|
|
Reporting | SyntaxEditor |
|
Remarks
Use this property to specify the formats of data the RichEditControl can copy to the Clipboard and prohibit pasting data in a specific format from the Clipboard.
The code sample below shows how to specify DataFormatOptions:
DataFormatOptions dataFormatOptions =
richEditControl.Options.ClipboardFormats;
dataFormatOptions.AllowImage = false;
dataFormatOptions.AllowPlainText = false;
dataFormatOptions.AllowHtml = false;
See Also