共用方式為


IVsTextMarkerGlyphDropHandler.DropAtLocation Method

Definition

Tells the client to handle the glyph being dropped at the given location.

public:
 int DropAtLocation(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 DropAtLocation(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 DropAtLocation (uint dwReserved, Microsoft.VisualStudio.TextManager.Interop.IVsTextView pDestView, Microsoft.VisualStudio.TextManager.Interop.IVsTextLines pDestBuffer, int iLine, int iIndex, out uint pdwDropResult);
abstract member DropAtLocation : uint32 * Microsoft.VisualStudio.TextManager.Interop.IVsTextView * Microsoft.VisualStudio.TextManager.Interop.IVsTextLines * int * int * uint32 -> int
Public Function DropAtLocation (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 destination view. For more information, see IVsTextView.

pDestBuffer
IVsTextLines

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

iLine
Int32

[in] Line within the text buffer.

iIndex
Int32

[in] Char index position within the line in the text buffer.

pdwDropResult
UInt32

[out] Indicates drop status. Combining 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::DropAtLocation(  
   [in] DWORD dwReserved,  
   [in] IVsTextView *pDestView,  
   [in] IVsTextLines *pDestBuffer,  
   [in] long iLine,  
   [in] CharIndex iIndex,  
   [out] DWORD *pdwDropResult  
);  

Applies to