Class TextLineCollection
Abstract base class for TextLine collections.
Inheritance
System.Object
TextLineCollection
Assembly: cs.temp.dll.dll
Syntax
public abstract class TextLineCollection : IReadOnlyList<TextLine>
Properties
Count
The count of TextLine items in the collection
Declaration
public abstract int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
Item[Int32]
Gets the TextLine item at the specified index.
Declaration
public abstract TextLine this[int index] { get; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Property Value
Methods
GetEnumerator()
Returns the enumerator for this text line collection.
Declaration
public TextLineCollection.Enumerator GetEnumerator()
Returns
GetLineFromPosition(Int32)
Gets a TextLine that encompasses the character position.
Declaration
public virtual TextLine GetLineFromPosition(int position)
Parameters
Type |
Name |
Description |
System.Int32 |
position |
|
Returns
GetLinePosition(Int32)
Declaration
public virtual LinePosition GetLinePosition(int position)
Parameters
Type |
Name |
Description |
System.Int32 |
position |
|
Returns
GetLinePositionSpan(TextSpan)
Declaration
public LinePositionSpan GetLinePositionSpan(TextSpan span)
Parameters
Returns
GetPosition(LinePosition)
Declaration
public int GetPosition(LinePosition position)
Parameters
Returns
Type |
Description |
System.Int32 |
|
GetTextSpan(LinePositionSpan)
Declaration
public TextSpan GetTextSpan(LinePositionSpan span)
Parameters
Returns
IndexOf(Int32)
The index of the TextLine that encompasses the character position.
Declaration
public abstract int IndexOf(int position)
Parameters
Type |
Name |
Description |
System.Int32 |
position |
|
Returns
Type |
Description |
System.Int32 |
|