VsTextViewClass::GetSelectionDataObject Method (IDataObject^)

 

Returns a copy of the selected text in IDataObject interface format.

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

public:
virtual int GetSelectionDataObject(
	[OutAttribute] IDataObject^% ppIDataObject
)

Parameters

ppIDataObject
Type: Microsoft.VisualStudio.OLE.Interop::IDataObject^

[out] Pointer to an IDataObject object containing the selected text.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Return to top
Show: