VsTextViewClass.GetSelectionDataObject(IDataObject) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.