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
| Constructor | Summary |
|---|---|
| TextLineCollectionSelection(TextLineCollection, TextSpan, Int32, Int32) | Initializes a new instance of TextLineCollectionSelection. |
Indexers
| Indexer | Summary |
|---|---|
| Item[Int32] | Gets the selected line at the specified index. |
Properties
| Property | Summary |
|---|---|
| Count | Gets a number of selected lines. |
| FirstIndex | Gets an index of the first selected line. (Implements ISelection<TextLine>.FirstIndex) |
| LastIndex | Gets an index of the last selected line. (Implements ISelection<TextLine>.LastIndex) |
| OriginalSpan | Gets the original span that was used to determine selected lines. |
| UnderlyingLines | Gets an underlying collection that contains selected lines. |
Methods
| Method | Summary |
|---|---|
| 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
| Member | Summary |
|---|---|
| IEnumerable.GetEnumerator() | |
| IEnumerable<TextLine>.GetEnumerator() |
Structs
| Struct | Summary |
|---|---|
| Enumerator |