ITextRange.CanPaste(Int32) ITextRange.CanPaste(Int32) ITextRange.CanPaste(Int32) ITextRange.CanPaste(Int32) Method

Definition

Determines whether the Clipboard contains content that can be pasted, using a specified format, into the current text range.

public : Platform::Boolean CanPaste(int format)
bool CanPaste(int32_t format) const;
public bool CanPaste(Int32 format)
Public Function CanPaste(format As Int32) As bool

Parameters

format
Int32 Int32

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