枚举一组特定文本行标记,根据指定的条件。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
语法
声明
Function EnumMarkers ( _
iStartLine As Integer, _
iStartIndex As Integer, _
iEndLine As Integer, _
iEndIndex As Integer, _
iMarkerType As Integer, _
dwFlags As UInteger, _
<OutAttribute> ByRef ppEnum As IVsEnumLineMarkers _
) As Integer
int EnumMarkers(
int iStartLine,
int iStartIndex,
int iEndLine,
int iEndIndex,
int iMarkerType,
uint dwFlags,
out IVsEnumLineMarkers ppEnum
)
int EnumMarkers(
[InAttribute] int iStartLine,
[InAttribute] int iStartIndex,
[InAttribute] int iEndLine,
[InAttribute] int iEndIndex,
[InAttribute] int iMarkerType,
[InAttribute] unsigned int dwFlags,
[OutAttribute] IVsEnumLineMarkers^% ppEnum
)
abstract EnumMarkers :
iStartLine:int *
iStartIndex:int *
iEndLine:int *
iEndIndex:int *
iMarkerType:int *
dwFlags:uint32 *
ppEnum:IVsEnumLineMarkers byref -> int
function EnumMarkers(
iStartLine : int,
iStartIndex : int,
iEndLine : int,
iEndIndex : int,
iMarkerType : int,
dwFlags : uint,
ppEnum : IVsEnumLineMarkers
) : int
参数
iStartLine
类型:Int32[in] 启动行。
iStartIndex
类型:Int32[in] 行中的起始字符的索引。 必须小于或等于行的长度。
iEndLine
类型:Int32[in] 结束行。
iEndIndex
类型:Int32[in] 在行内结束字符索引。 必须小于或等于行的长度。
iMarkerType
类型:Int32[in] ,如果 EM_ALLTYPES 的值。 dwFlags 参数,指定此参数将被忽略。 否则,此参数指示标记类型查找。
dwFlags
类型:UInt32[in] 枚举选项。 有关 dwFlags 值列表,请参见 ENUMMARKERFLAGS。
ppEnum
类型:Microsoft.VisualStudio.TextManager.Interop.IVsEnumLineMarkers%[out] 为 IVsEnumLineMarkers 接口的指针。
返回值
类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
备注
COM 签名
从 textmgr.idl:
HRESULT IVsTextLines::EnumMarkers(
[in] long iStartLine,
[in] CharIndex iStartIndex,
[in] long iEndLine,
[in] CharIndex iEndIndex,
[in] long iMarkerType,
[in] DWORD dwFlags,
[out] IVsEnumLineMarkers ** ppEnum
);
此方法枚举给定区域的标记,但受 dwFlags 参数的值。 IVsTextLines.EnumMarkers 枚举所有标记,但是,通过 IVsEnumLineMarkers 接口获取其 IVsTextLineMarker 接口。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。