Share via


TextChange Struct

Definition

public value class TextChange
public struct TextChange
type TextChange = struct
Public Structure TextChange
Inheritance
TextChange

Constructors

Name Description
TextChange(Int32, Int32, ITextBuffer, Int32, Int32, ITextBuffer)

Properties

Name Description
IsDelete
IsInsert
IsReplace
NewBuffer
NewLength
NewPosition
NewText
OldBuffer
OldLength
OldPosition
OldText

Methods

Name Description
ApplyChange(Span)

Applies the text change to the content of the span and returns the new content. This method doesn't update the span content.

ApplyChange(String, Int32)
Equals(Object)
GetHashCode()
Normalize()

Removes a common prefix from the edit to turn IntelliSense replacements into insertions where possible

ToString()

Operators

Name Description
Equality(TextChange, TextChange)
Inequality(TextChange, TextChange)

Applies to