枚举一组特定文本行标记,根据指定的条件。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
语法
声明
Public Overridable 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
public virtual int EnumMarkers(
int iStartLine,
int iStartIndex,
int iEndLine,
int iEndIndex,
int iMarkerType,
uint dwFlags,
out IVsEnumLineMarkers ppEnum
)
public:
virtual 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
override EnumMarkers :
iStartLine:int *
iStartIndex:int *
iEndLine:int *
iEndIndex:int *
iMarkerType:int *
dwFlags:uint32 *
ppEnum:IVsEnumLineMarkers byref -> int
public 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
实现
IVsTextLines.EnumMarkers(Int32, Int32, Int32, Int32, Int32, UInt32, IVsEnumLineMarkers%)
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。