Share via


IVsLanguageDragDropOps.DragSetup(IDataObject, IVsTextLines, Int32) Method

Definition

Does the necessary setup or caching in order to quickly execute the IsTextDataAtLocation(IVsTextLines, Int32, Int32, Int32) method.

public:
 int DragSetup(Microsoft::VisualStudio::OLE::Interop::IDataObject ^ pDO, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pBuffer, [Runtime::InteropServices::Out] int % pfDocumentContainsTextData);
int DragSetup(Microsoft::VisualStudio::OLE::Interop::IDataObject const & pDO, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines const & pBuffer, [Runtime::InteropServices::Out] int & pfDocumentContainsTextData);
public int DragSetup (Microsoft.VisualStudio.OLE.Interop.IDataObject pDO, Microsoft.VisualStudio.TextManager.Interop.IVsTextLines pBuffer, out int pfDocumentContainsTextData);
abstract member DragSetup : Microsoft.VisualStudio.OLE.Interop.IDataObject * Microsoft.VisualStudio.TextManager.Interop.IVsTextLines * int -> int
Public Function DragSetup (pDO As IDataObject, pBuffer As IVsTextLines, ByRef pfDocumentContainsTextData As Integer) As Integer

Parameters

pDO
IDataObject

The data object.

pBuffer
IVsTextLines

The buffer.

pfDocumentContainsTextData
Int32

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

Returns

Remarks

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

Applies to