RichEditBox.ClipboardCopyFormat Property

Definition

Gets or sets a value that specifies whether text is copied with all formats, or as plain text only.

public:
 property RichEditClipboardFormat ClipboardCopyFormat { RichEditClipboardFormat get(); void set(RichEditClipboardFormat value); };
RichEditClipboardFormat ClipboardCopyFormat();

void ClipboardCopyFormat(RichEditClipboardFormat value);
public RichEditClipboardFormat ClipboardCopyFormat { get; set; }
var richEditClipboardFormat = richEditBox.clipboardCopyFormat;
richEditBox.clipboardCopyFormat = richEditClipboardFormat;
Public Property ClipboardCopyFormat As RichEditClipboardFormat

Property Value

An enumeration value that specifies whether text is copied with all formats, or as plain text only. The default is AllFormats.

Examples

<RichEditBox ClipboardCopyFormat="PlainText"/>
RichEditBox editBox1 = new RichEditBox();
editBox1.ClipboardCopyFormat = RichEditClipboardFormat.PlainText;

Remarks

By default, text copied from a RichEditBox is copied as both plain text and rich text. When the text is pasted into another app, the receiving app determines whether the plain text or rich text is used. To ensure that only plain text is pasted into a receiving app, set this property to PlainText to copy only plain text from the RichEditBox.

Applies to