ITextChange ITextChange ITextChange Interface

Definition

Describes a single contiguous text change operation on the text buffer.

public interface ITextChange
type ITextChange = interface
Public Interface ITextChange
Derived

Remarks

All text changes are considered to be the replacement of oldText with newText. Insertion is a text change in which oldText is an empty string and newText a non-empty string. Deletion is a text change in which oldText is a non-empty string and newText is an empty string. Modification is a text change in which both oldText and newText are non-empty strings.

ITextChange objects are immutable.

Properties

Delta Delta Delta

Gets the difference in the length of the buffer that results from this change.

LineCountDelta LineCountDelta LineCountDelta

Gets the difference in the number of lines in the snapshot that results from this change.

NewEnd NewEnd NewEnd

Gets the end position of the NewText in the snapshot immediately after the text change.

NewLength NewLength NewLength

Gets the length of NewText.

NewPosition NewPosition NewPosition

Gets the position of the text change in the snapshot immediately after the change.

NewSpan NewSpan NewSpan

Gets the span of the ITextChange in the snapshot immediately after the change.

NewText NewText NewText

Gets the text that replaced the old text.

OldEnd OldEnd OldEnd

Gets the end position of the OldText in the snapshot immediately before the change.

OldLength OldLength OldLength

Gets the length of OldText.

OldPosition OldPosition OldPosition

Gets the position of the text change in the snapshot immediately before the change.

OldSpan OldSpan OldSpan

The span of the text change in the snapshot immediately before the change.

OldText OldText OldText

Gets the text that was replaced.

Applies to