Skip to main content

TextLineCollectionSelection Class

Namespace: Roslynator.Text

Assembly: Roslynator.Core.dll

Represents selected lines in a TextLineCollection.

public class TextLineCollectionSelection : Roslynator.ISelection<Microsoft.CodeAnalysis.Text.TextLine>

Inheritance

Object TextLineCollectionSelection

Implements

Constructors

ConstructorSummary
TextLineCollectionSelection(TextLineCollection, TextSpan, Int32, Int32)Initializes a new instance of TextLineCollectionSelection.

Indexers

IndexerSummary
Item[Int32]Gets the selected line at the specified index.

Properties

PropertySummary
CountGets a number of selected lines.
FirstIndexGets an index of the first selected line. (Implements ISelection<TextLine>.FirstIndex)
LastIndexGets an index of the last selected line. (Implements ISelection<TextLine>.LastIndex)
OriginalSpanGets the original span that was used to determine selected lines.
UnderlyingLinesGets an underlying collection that contains selected lines.

Methods

MethodSummary
Create(TextLineCollection, TextSpan)Creates a new TextLineCollectionSelection based on the specified list and span.
Equals(Object)(Inherited from Object)
First()Gets the first selected line. (Implements ISelection<TextLine>.First)
GetEnumerator()Returns an enumerator that iterates through selected lines.
GetHashCode()(Inherited from Object)
GetType()(Inherited from Object)
Last()Gets the last selected line. (Implements ISelection<TextLine>.Last)
MemberwiseClone()(Inherited from Object)
ToString()(Inherited from Object)
TryCreate(TextLineCollection, TextSpan, TextLineCollectionSelection)Creates a new TextLineCollectionSelection based on the specified list and span.

Explicit Interface Implementations

MemberSummary
IEnumerable.GetEnumerator()
IEnumerable<TextLine>.GetEnumerator()

Structs

StructSummary
Enumerator