-api-id | -api-type |
---|---|
M:Windows.UI.Text.ITextRange.CanPaste(System.Int32) |
winrt method |
Determines whether the Clipboard contains content that can be pasted, using a specified format, into the current text range.
The clipboard format. Zero represents the best format, which usually is Rich Text Format (RTF), but CF_UNICODETEXT and other formats are also possible. The default value is zero.
True if the Clipboard content can be pasted into the text range in the specified format, and otherwise false.
Note
On Windows Phone, CanPaste always returns false. Programmatic access to the clipboard is not supported on Windows Phone.