TextChangeRange Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Issues stufenweise als Feedbackmechanismus für Inhalte abbauen und durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unterFeedback senden und anzeigen für