IVsLanguageDragDropOps::DragSetup Method (IDataObject^, IVsTextLines^, Int32)

 

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)

int DragSetup(
	IDataObject^ pDO,
	IVsTextLines^ pBuffer,
	[OutAttribute] int% pfDocumentContainsTextData
)

Parameters

pDO
Type: Microsoft.VisualStudio.OLE.Interop::IDataObject^

The data object.

pBuffer
Type: Microsoft.VisualStudio.TextManager.Interop::IVsTextLines^

The buffer.

pfDocumentContainsTextData
Type: System::Int32

[out] Zero (false) if the document does not contain text, otherwise non-zero (true).

Return Value

Type: System::Int32

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

Return to top
Show: