IVsTextMarkerGlyphDropHandler.QueryDropLocation 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
用于确定给定位置是否是有效的放置目标。
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
参数
- dwReserved
- UInt32
中请勿使用。
- pDestView
- IVsTextView
中指向建议目标视图的指针。 有关详细信息,请参阅 IVsTextView。
- pDestBuffer
- IVsTextLines
中指向建议目标缓冲区的指针。 有关详细信息,请参阅 IVsTextLines。
- iLine
- Int32
中文本缓冲区中的建议行。
- iIndex
- Int32
中文本缓冲区内行内的建议字符索引位置。
- pdwDropResult
- UInt32
弄指示 drop 状态。 包含按位 "或" 的合并 CUSTOM_DROP_HANDLER_FLAGS 。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 textmgr:
HRESULT IVsTextMarkerGlyphDropHandler::QueryDropLocation(
[in] DWORD dwReserved,
[in] IVsTextView *pDestView,
[in] IVsTextLines *pDestBuffer,
[in] long iLine,
[in] CharIndex iIndex,
[out] DWORD *pdwDropResult
);