ITextChange Interface

 

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

Namespace:   Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

public interface ITextChange

NameDescription
System_CAPS_pubpropertyDelta

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

System_CAPS_pubpropertyLineCountDelta

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

System_CAPS_pubpropertyNewEnd

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

System_CAPS_pubpropertyNewLength

Gets the length of NewText.

System_CAPS_pubpropertyNewPosition

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

System_CAPS_pubpropertyNewSpan

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

System_CAPS_pubpropertyNewText

Gets the text that replaced the old text.

System_CAPS_pubpropertyOldEnd

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

System_CAPS_pubpropertyOldLength

Gets the length of OldText.

System_CAPS_pubpropertyOldPosition

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

System_CAPS_pubpropertyOldSpan

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

System_CAPS_pubpropertyOldText

Gets the text that was replaced.

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.

Return to top
Show: