Search Results for

    Show / Hide Table of Contents

    Class TextChangeEventArgs

    Represents state for a TextChanged event.

    Inheritance
    System.Object
    TextChangeEventArgs
    Namespace: Loretta.CodeAnalysis.Text
    Assembly: Loretta.CodeAnalysis.dll
    Syntax
    public class TextChangeEventArgs : EventArgs

    Constructors

    | Improve this Doc View Source

    TextChangeEventArgs(SourceText, SourceText, IEnumerable<TextChangeRange>)

    Initializes an instance of TextChangeEventArgs.

    Declaration
    public TextChangeEventArgs(SourceText oldText, SourceText newText, IEnumerable<TextChangeRange> changes)
    Parameters
    Type Name Description
    SourceText oldText

    The text before the change.

    SourceText newText

    The text after the change.

    IEnumerable<TextChangeRange> changes

    A set of ranges for the change.

    | Improve this Doc View Source

    TextChangeEventArgs(SourceText, SourceText, TextChangeRange[])

    Initializes an instance of TextChangeEventArgs.

    Declaration
    public TextChangeEventArgs(SourceText oldText, SourceText newText, params TextChangeRange[] changes)
    Parameters
    Type Name Description
    SourceText oldText

    The text before the change.

    SourceText newText

    The text after the change.

    TextChangeRange[] changes

    A set of ranges for the change.

    Properties

    | Improve this Doc View Source

    Changes

    Gets the set of ranges for the change.

    Declaration
    public IReadOnlyList<TextChangeRange> Changes { get; }
    Property Value
    Type Description
    IReadOnlyList<TextChangeRange>
    | Improve this Doc View Source

    NewText

    Gets the text after the change.

    Declaration
    public SourceText NewText { get; }
    Property Value
    Type Description
    SourceText
    | Improve this Doc View Source

    OldText

    Gets the text before the change.

    Declaration
    public SourceText OldText { get; }
    Property Value
    Type Description
    SourceText
    • Improve this Doc
    • View Source
    ☀
    ☾
    In This Article
    Back to top

    Copyright (c) LorettaDevs

    Generated by DocFX

    ☀
    ☾