Share via


VsTextViewClass.GetSelectionDataObject(IDataObject) Method

Definition

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

public:
 virtual int GetSelectionDataObject([Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IDataObject ^ % ppIDataObject) = Microsoft::VisualStudio::TextManager::Interop::IVsTextView::GetSelectionDataObject;
public:
 virtual int GetSelectionDataObject([Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IDataObject ^ % ppIDataObject);
public:
 virtual int GetSelectionDataObject([Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IDataObject ^ &  ppIDataObject) = Microsoft::VisualStudio::TextManager::Interop::IVsTextView::GetSelectionDataObject;
 virtual int GetSelectionDataObject([Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IDataObject const & & ppIDataObject);
public virtual int GetSelectionDataObject (out Microsoft.VisualStudio.OLE.Interop.IDataObject ppIDataObject);
abstract member GetSelectionDataObject : IDataObject -> int
override this.GetSelectionDataObject : IDataObject -> int
Public Overridable Function GetSelectionDataObject (ByRef ppIDataObject As IDataObject) As Integer

Parameters

ppIDataObject
IDataObject

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

Returns

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

Implements

Applies to