Partager via


IVsLanguageDragDropOps.DragSetup Method

Does the necessary setup or caching in order to quickly execute the IsTextDataAtLocation method.

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

Syntax

'Déclaration
Function DragSetup ( _
    pDO As IDataObject, _
    pBuffer As IVsTextLines, _
    <OutAttribute> ByRef pfDocumentContainsTextData As Integer _
) As Integer
int DragSetup(
    IDataObject pDO,
    IVsTextLines pBuffer,
    out int pfDocumentContainsTextData
)
int DragSetup(
    [InAttribute] IDataObject^ pDO, 
    [InAttribute] IVsTextLines^ pBuffer, 
    [OutAttribute] int% pfDocumentContainsTextData
)
abstract DragSetup : 
        pDO:IDataObject * 
        pBuffer:IVsTextLines * 
        pfDocumentContainsTextData:int byref -> int 
function DragSetup(
    pDO : IDataObject, 
    pBuffer : IVsTextLines, 
    pfDocumentContainsTextData : int
) : int

Parameters

  • pfDocumentContainsTextData
    Type: System.Int32%
    [out] Zero (false) if the document does not contain text, otherwise non-zero (true).

Return Value

Type: System.Int32

Remarks

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

.NET Framework Security

See Also

Reference

IVsLanguageDragDropOps Interface

Microsoft.VisualStudio.TextManager.Interop Namespace