RichEditTextRange.CanPaste(Int32) Method

Definition

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

Boolean

bool

true if the Clipboard content can be pasted into the text range in the specified format; otherwise, false.

Implements

M:Microsoft.UI.Text.ITextRange.CanPaste(System.Int32) M:Microsoft.UI.Text.ITextRange.CanPaste(int)

Applies to