IVsTextMarkerGlyphDropHandler::QueryDropLocation Method (UInt32, IVsTextView^, IVsTextLines^, Int32, Int32, UInt32)

 

Used to determine whether a given location is a valid drop destination.

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

int QueryDropLocation(
	unsigned int dwReserved,
	IVsTextView^ pDestView,
	IVsTextLines^ pDestBuffer,
	int iLine,
	int iIndex,
	[OutAttribute] unsigned int% pdwDropResult
)

Parameters

dwReserved
Type: System::UInt32

[in] Do not use.

pDestView
Type: Microsoft.VisualStudio.TextManager.Interop::IVsTextView^

[in] Pointer to the proposed destination view. For more information, see IVsTextView.

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

[in] Pointer to the proposed destination buffer. For more information, see IVsTextLines.

iLine
Type: System::Int32

[in] Proposed line within the text buffer.

iIndex
Type: System::Int32

[in] Proposed char index position within the line in the text buffer.

pdwDropResult
Type: System::UInt32

[out] Indicates drop status. Combing with a bitwise or of CUSTOM_DROP_HANDLER_FLAGS.

Return Value

Type: System::Int32

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

From textmgr.idl:

HRESULT IVsTextMarkerGlyphDropHandler::QueryDropLocation(
   [in] DWORD dwReserved,
   [in] IVsTextView *pDestView,
   [in] IVsTextLines *pDestBuffer,
   [in] long iLine,
   [in] CharIndex iIndex,
   [out] DWORD *pdwDropResult
);
Return to top
Show: