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