Dela via


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

Boolean

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.

Applies to