Edit

Share via


TextRange2.PasteSpecial(MsoClipboardFormat) Method

Definition

Replaces the text range with the contents of the Clipboard in the format specified. If the paste succeeds, this method returns a TextRange2 object including the text range that was pasted.

public:
 Microsoft::Office::Core::TextRange2 ^ PasteSpecial(Microsoft::Office::Core::MsoClipboardFormat Format);
public Microsoft.Office.Core.TextRange2 PasteSpecial (Microsoft.Office.Core.MsoClipboardFormat Format);
abstract member PasteSpecial : Microsoft.Office.Core.MsoClipboardFormat -> Microsoft.Office.Core.TextRange2
Public Function PasteSpecial (Format As MsoClipboardFormat) As TextRange2

Parameters

Format
MsoClipboardFormat

Determines the format for the Clipboard contents when they're inserted into the document.

Returns

TextRange2

Applies to