RichEditBox.ClipboardCopyFormat Property

Definition

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

C#
public RichEditClipboardFormat ClipboardCopyFormat { get; set; }

Property Value

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

Examples

XAML
<RichEditBox ClipboardCopyFormat="PlainText"/>
C#
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

Product Versions
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6