IVsTextMarkerGlyphDropHandler.QueryDropLocation Method

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)

Syntax

'Déclaration
Function QueryDropLocation ( _
    dwReserved As UInteger, _
    pDestView As IVsTextView, _
    pDestBuffer As IVsTextLines, _
    iLine As Integer, _
    iIndex As Integer, _
    <OutAttribute> ByRef pdwDropResult As UInteger _
) As Integer
'Utilisation
Dim instance As IVsTextMarkerGlyphDropHandler
Dim dwReserved As UInteger
Dim pDestView As IVsTextView
Dim pDestBuffer As IVsTextLines
Dim iLine As Integer
Dim iIndex As Integer
Dim pdwDropResult As UInteger
Dim returnValue As Integer

returnValue = instance.QueryDropLocation(dwReserved, _
    pDestView, pDestBuffer, iLine, iIndex, _
    pdwDropResult)
int QueryDropLocation(
    uint dwReserved,
    IVsTextView pDestView,
    IVsTextLines pDestBuffer,
    int iLine,
    int iIndex,
    out uint pdwDropResult
)
int QueryDropLocation(
    [InAttribute] unsigned int dwReserved, 
    [InAttribute] IVsTextView^ pDestView, 
    [InAttribute] IVsTextLines^ pDestBuffer, 
    [InAttribute] int iLine, 
    [InAttribute] int iIndex, 
    [OutAttribute] unsigned int% pdwDropResult
)
abstract QueryDropLocation : 
        dwReserved:uint32 * 
        pDestView:IVsTextView * 
        pDestBuffer:IVsTextLines * 
        iLine:int * 
        iIndex:int * 
        pdwDropResult:uint32 byref -> int 
function QueryDropLocation(
    dwReserved : uint, 
    pDestView : IVsTextView, 
    pDestBuffer : IVsTextLines, 
    iLine : int, 
    iIndex : int, 
    pdwDropResult : uint
) : int

Parameters

  • 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.

Return Value

Type: System.Int32
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
);

.NET Framework Security

See Also

Reference

IVsTextMarkerGlyphDropHandler Interface

IVsTextMarkerGlyphDropHandler Members

Microsoft.VisualStudio.TextManager.Interop Namespace