Share via


VsTextViewClass.GetSelectionDataObject Method

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)

Syntax

'Déclaration
Public Overridable Function GetSelectionDataObject ( _
    <OutAttribute> ByRef ppIDataObject As IDataObject _
) As Integer
public virtual int GetSelectionDataObject(
    out IDataObject ppIDataObject
)
public:
virtual int GetSelectionDataObject(
    [OutAttribute] IDataObject^% ppIDataObject
)
abstract GetSelectionDataObject : 
        ppIDataObject:IDataObject byref -> int 
override GetSelectionDataObject : 
        ppIDataObject:IDataObject byref -> int 
public function GetSelectionDataObject(
    ppIDataObject : IDataObject
) : int

Parameters

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IVsTextView.GetSelectionDataObject(IDataObject%)

.NET Framework Security

See Also

Reference

VsTextViewClass Class

Microsoft.VisualStudio.TextManager.Interop Namespace