Search Results for

    Show / Hide Table of Contents

    Class TextLineCollection

    Abstract base class for TextLine collections.

    Inheritance
    System.Object
    TextLineCollection
    Namespace: Loretta.CodeAnalysis.Text
    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
    Type Description
    TextLine

    Methods

    | Improve this Doc View Source

    GetEnumerator()

    Returns the enumerator for this text line collection.

    Declaration
    public TextLineCollection.Enumerator GetEnumerator()
    Returns
    Type Description
    TextLineCollection.Enumerator
    | 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
    Type Description
    TextLine
    | Improve this Doc View Source

    GetLinePosition(Int32)

    Gets a LinePosition corresponding to a character position.

    Declaration
    public virtual LinePosition GetLinePosition(int position)
    Parameters
    Type Name Description
    System.Int32 position
    Returns
    Type Description
    LinePosition
    | Improve this Doc View Source

    GetLinePositionSpan(TextSpan)

    Convert a TextSpan to a LinePositionSpan.

    Declaration
    public LinePositionSpan GetLinePositionSpan(TextSpan span)
    Parameters
    Type Name Description
    TextSpan span
    Returns
    Type Description
    LinePositionSpan
    | Improve this Doc View Source

    GetPosition(LinePosition)

    Convert a LinePosition to a position.

    Declaration
    public int GetPosition(LinePosition position)
    Parameters
    Type Name Description
    LinePosition position
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    GetTextSpan(LinePositionSpan)

    Convert a LinePositionSpan to TextSpan.

    Declaration
    public TextSpan GetTextSpan(LinePositionSpan span)
    Parameters
    Type Name Description
    LinePositionSpan span
    Returns
    Type Description
    TextSpan
    | 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
    • Improve this Doc
    • View Source
    ☀
    ☾
    In This Article
    Back to top

    Copyright (c) LorettaDevs

    Generated by DocFX

    ☀
    ☾