ITextRange.CanPaste(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether the Clipboard contains content that can be pasted, using a specified format, into the current text range.
public:
bool CanPaste(int format);
bool CanPaste(int const& format);
public bool CanPaste(int format);
function canPaste(format)
Public Function CanPaste (format As Integer) As Boolean
Parameters
- format
-
Int32
int
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.
Returns
bool
True if the Clipboard content can be pasted into the text range in the specified format, and otherwise false.
Remarks
Note
On Windows Phone, CanPaste always returns false. Programmatic access to the clipboard is not supported on Windows Phone.