Class TextLineCollection
Abstract base class for TextLine collections.
Inheritance
System.Object
TextLineCollection
Assembly: Loretta.CodeAnalysis.dll
Syntax
public abstract class TextLineCollection : IReadOnlyList<TextLine>
Properties
|
Improve this Doc
View Source
Count
The count of TextLine items in the collection
Declaration
public abstract int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
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
|
Improve this Doc
View Source
GetEnumerator()
Returns the enumerator for this text line collection.
Declaration
public TextLineCollection.Enumerator GetEnumerator()
Returns
|
Improve this Doc
View Source
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
|
Improve this Doc
View Source
GetLinePosition(Int32)
Declaration
public virtual LinePosition GetLinePosition(int position)
Parameters
Type |
Name |
Description |
System.Int32 |
position |
|
Returns
|
Improve this Doc
View Source
GetLinePositionSpan(TextSpan)
Declaration
public LinePositionSpan GetLinePositionSpan(TextSpan span)
Parameters
Returns
|
Improve this Doc
View Source
GetPosition(LinePosition)
Declaration
public int GetPosition(LinePosition position)
Parameters
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
GetTextSpan(LinePositionSpan)
Declaration
public TextSpan GetTextSpan(LinePositionSpan span)
Parameters
Returns
|
Improve this Doc
View Source
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 |
|
Explicit Interface Implementations
|
Improve this Doc
View Source
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type |
Description |
System.Collections.IEnumerator |
|