Click or drag to resize

TextLineCollection Class



Abstract base class for TextLine collections.
Inheritance Hierarchy
SystemObject
  Microsoft.CodeAnalysis.TextTextLineCollection

Namespace:  Microsoft.CodeAnalysis.Text
Assembly:  Microsoft.CodeAnalysis (in Microsoft.CodeAnalysis.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public abstract class TextLineCollection : IReadOnlyList, 
	IEnumerable, IEnumerable, IReadOnlyCollection

The TextLineCollection type exposes the following members.

Constructors
  NameDescription
Protected methodTextLineCollection
Initializes a new instance of the TextLineCollection class
Top
Properties
  NameDescription
Public propertyCount
The count of TextLine items in the collection
Public propertyItem
Gets the TextLine item at the specified index.
Top
Methods
  NameDescription
Public methodGetEnumerator
Public methodGetLineFromPosition
Gets a TextLine that encompasses the character position.
Public methodGetLinePosition
Gets a LinePosition corresponding to a character position.
Public methodGetLinePositionSpan
Convert a TextSpan to a LinePositionSpan.
Public methodGetPosition
Convert a LinePosition to a position.
Public methodGetTextSpan
Convert a LinePositionSpan to TextSpan.
Public methodIndexOf
The index of the TextLine that encompasses the character position.
Top
See Also