TextChangeRange Struct

Definition

Represents the change to a span of text.

public value class TextChangeRange : IEquatable<Microsoft::CodeAnalysis::Text::TextChangeRange>
public readonly struct TextChangeRange : IEquatable<Microsoft.CodeAnalysis.Text.TextChangeRange>
[System.Diagnostics.DebuggerDisplay("{GetDebuggerDisplay(),nq}")]
public readonly struct TextChangeRange : IEquatable<Microsoft.CodeAnalysis.Text.TextChangeRange>
type TextChangeRange = struct
[<System.Diagnostics.DebuggerDisplay("{GetDebuggerDisplay(),nq}")>]
type TextChangeRange = struct
Public Structure TextChangeRange
Implements IEquatable(Of TextChangeRange)
Inheritance
TextChangeRange
Attributes
Implements

Constructors

TextChangeRange(TextSpan, Int32)

Initializes a new instance of TextChangeRange.

Properties

NewLength

Width of the span after the edit. A 0 here would represent a delete

NoChanges

An empty set of changes.

Span

The span of text before the edit which is being changed

Methods

Collapse(IEnumerable<TextChangeRange>)

Collapse a set of TextChangeRanges into a single encompassing range. If the set of ranges provided is empty, an empty range is returned.

Equals(Object)

Compares current instance of TextChangeRange to another.

Equals(TextChangeRange)

Compares current instance of TextChangeRange to another.

GetHashCode()

Provides hash code for current instance of TextChangeRange.

ToString()

Operators

Equality(TextChangeRange, TextChangeRange)

Determines if two instances of TextChangeRange are same.

Inequality(TextChangeRange, TextChangeRange)

Determines if two instances of TextChangeRange are different.

Applies to