Share via


TextLineCollection 类

定义

集合的 TextLine 抽象基类。

public ref class TextLineCollection abstract : System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::Text::TextLine>, System::Collections::Generic::IReadOnlyCollection<Microsoft::CodeAnalysis::Text::TextLine>, System::Collections::Generic::IReadOnlyList<Microsoft::CodeAnalysis::Text::TextLine>
public abstract class TextLineCollection : System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Text.TextLine>, System.Collections.Generic.IReadOnlyCollection<Microsoft.CodeAnalysis.Text.TextLine>, System.Collections.Generic.IReadOnlyList<Microsoft.CodeAnalysis.Text.TextLine>
type TextLineCollection = class
    interface IReadOnlyList<TextLine>
    interface seq<TextLine>
    interface IEnumerable
    interface IReadOnlyCollection<TextLine>
Public MustInherit Class TextLineCollection
Implements IEnumerable(Of TextLine), IReadOnlyCollection(Of TextLine), IReadOnlyList(Of TextLine)
继承
TextLineCollection
实现

构造函数

TextLineCollection()

集合的 TextLine 抽象基类。

属性

Count

集合中的项计数TextLine

Item[Int32]

TextLine获取指定索引处的项。

方法

GetEnumerator()

集合的 TextLine 抽象基类。

GetLineFromPosition(Int32)

获取一个 TextLine 包含字符位置的字符位置。

GetLinePosition(Int32)

获取与 LinePosition 字符位置对应的字符位置。

GetLinePositionSpan(TextSpan)

将 a TextSpan 转换为 LinePositionSpan.

GetPosition(LinePosition)

将 a LinePosition 转换为位置。

GetTextSpan(LinePositionSpan)

LinePositionSpanTextSpan转换为 .

IndexOf(Int32)

包含字符位置的 TextLine 的索引。

显式接口实现

IEnumerable.GetEnumerator()

集合的 TextLine 抽象基类。

IEnumerable<TextLine>.GetEnumerator()

集合的 TextLine 抽象基类。

适用于