Share via


IVsTextMarkerGlyphDropHandler.QueryDropLocation Method

Definition

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

public:
 int QueryDropLocation(System::UInt32 dwReserved, Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ pDestView, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pDestBuffer, int iLine, int iIndex, [Runtime::InteropServices::Out] System::UInt32 % pdwDropResult);
int QueryDropLocation(unsigned int dwReserved, Microsoft::VisualStudio::TextManager::Interop::IVsTextView const & pDestView, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines const & pDestBuffer, int iLine, int iIndex, [Runtime::InteropServices::Out] unsigned int & pdwDropResult);
public int QueryDropLocation (uint dwReserved, Microsoft.VisualStudio.TextManager.Interop.IVsTextView pDestView, Microsoft.VisualStudio.TextManager.Interop.IVsTextLines pDestBuffer, int iLine, int iIndex, out uint pdwDropResult);
abstract member QueryDropLocation : uint32 * Microsoft.VisualStudio.TextManager.Interop.IVsTextView * Microsoft.VisualStudio.TextManager.Interop.IVsTextLines * int * int * uint32 -> int
Public Function QueryDropLocation (dwReserved As UInteger, pDestView As IVsTextView, pDestBuffer As IVsTextLines, iLine As Integer, iIndex As Integer, ByRef pdwDropResult As UInteger) As Integer

Parameters

dwReserved
UInt32

[in] Do not use.

pDestView
IVsTextView

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

pDestBuffer
IVsTextLines

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

iLine
Int32

[in] Proposed line within the text buffer.

iIndex
Int32

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

pdwDropResult
UInt32

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

Returns

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

Remarks

COM Signature

From textmgr.idl:

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

Applies to