找到基于文本流中的位置的特定类型的标记。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
语法
声明
Function FindMarkerByPosition ( _
iMarkerType As Integer, _
iStartingPos As Integer, _
dwFlags As UInteger, _
<OutAttribute> ByRef ppMarker As IVsTextStreamMarker _
) As Integer
int FindMarkerByPosition(
int iMarkerType,
int iStartingPos,
uint dwFlags,
out IVsTextStreamMarker ppMarker
)
int FindMarkerByPosition(
[InAttribute] int iMarkerType,
[InAttribute] int iStartingPos,
[InAttribute] unsigned int dwFlags,
[OutAttribute] IVsTextStreamMarker^% ppMarker
)
abstract FindMarkerByPosition :
iMarkerType:int *
iStartingPos:int *
dwFlags:uint32 *
ppMarker:IVsTextStreamMarker byref -> int
function FindMarkerByPosition(
iMarkerType : int,
iStartingPos : int,
dwFlags : uint,
ppMarker : IVsTextStreamMarker
) : int
参数
iMarkerType
类型:Int32[in] 指定标记的类型查找。
iStartingPos
类型:Int32[in] 在文本流的起始位置。
dwFlags
类型:UInt32[in] 指定方向搜索标记。 有关 dwFlags 值列表,请参见 FINDMARKERFLAGS。
ppMarker
类型:Microsoft.VisualStudio.TextManager.Interop.IVsTextStreamMarker%[out] 为 IVsTextStreamMarker 接口 (即文本标记) 的指针。
返回值
类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
备注
COM 签名
从 textmgr.idl:
HRESULT IVsTextStream::FindMarkerByPosition(
[in] long iMarkerType,
[in] long iStartingPos,
[in] DWORD dwFlags,
[out] IVsTextStreamMarker **ppMarker
);
此方法搜索标记受使用 dwFlags 和 iMarkerType 参数指定的约束。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。