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
- 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.
Implements
IVsTextView.GetSelectionDataObject(IDataObject%)
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.