ITextRange.Paste(Int32) Method

Definition

Pastes text from the Clipboard into the text range.

public:
 void Paste(int format);
void Paste(int const& format);
public void Paste(int format);
function paste(format)
Public Sub Paste (format As Integer)

Parameters

format
Int32

int

The clipboard format to use in the paste operation. 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.

Remarks

Note

On Windows Phone, this method throws an exception. Programmatic access to the clipboard is not supported on Windows Phone.

Applies to

See also