Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.13 KB

richeditbox_clipboardcopyformat.md

File metadata and controls

34 lines (23 loc) · 1.13 KB
-api-id -api-type
P:Microsoft.UI.Xaml.Controls.RichEditBox.ClipboardCopyFormat
winrt property

Microsoft.UI.Xaml.Controls.RichEditBox.ClipboardCopyFormat

-description

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

-property-value

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

-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.

-examples

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

-see-also