用于确定特定位置是否是有效的放置目标。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
语法
声明
Function QueryDropLocation ( _
dwReserved As UInteger, _
pDestView As IVsTextView, _
pDestBuffer As IVsTextLines, _
iLine As Integer, _
iIndex As Integer, _
<OutAttribute> ByRef pdwDropResult As UInteger _
) As Integer
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
参数
dwReserved
类型:UInt32[in] 不要使用。
pDestView
类型:Microsoft.VisualStudio.TextManager.Interop.IVsTextView[in] 为建议的目标视图的指针。 有关更多信息,请参见 IVsTextView。
pDestBuffer
类型:Microsoft.VisualStudio.TextManager.Interop.IVsTextLines[in] 为建议的目标缓冲区的指针。 有关更多信息,请参见 IVsTextLines。
iLine
类型:Int32[in] 在文本缓冲区中的建议行。
iIndex
类型:Int32[in] 在行内建议的字符的索引位置在文本缓冲区。
pdwDropResult
类型:UInt32%[out] 指示放置状态。 按位梳与或 CUSTOM_DROP_HANDLER_FLAGS。
返回值
类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
备注
COM 签名
从 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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。