RichEditTextRange.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:
virtual bool CanPaste(int format) = CanPaste;
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; otherwise, false.