-api-id | -api-type |
---|---|
P:Microsoft.UI.Xaml.Controls.RichEditBox.ClipboardCopyFormat |
winrt property |
Gets or sets a value that specifies whether text is copied with all formats, or as plain text only.
An enumeration value that specifies whether text is copied with all formats, or as plain text only. The default is AllFormats.
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.
<RichEditBox ClipboardCopyFormat="PlainText"/>
RichEditBox editBox1 = new RichEditBox();
editBox1.ClipboardCopyFormat = RichEditClipboardFormat.PlainText;