ITextChange Interface
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.
Describes a single contiguous text change operation on the Text Buffer.
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.
public interface class ITextChange
public interface class ITextChange
__interface ITextChange
public interface ITextChange
type ITextChange = interface
Public Interface ITextChange
- Derived
Remarks
ITextChange objects are immutable.
Properties
Delta |
The effect On the length of the buffer resulting from this change. |
LineCountDelta |
The effect of this change on the number of lines in the snapshot. |
NewEnd |
The end position of the NewText in the snapshot immediately after the text change. |
NewLength |
The length of NewText. |
NewPosition |
The position of the text change in the snapshot immediately after the change. The position can differ from OldPosition only when there is more than one ITextChange included in moving from one snapshot to the next. |
NewSpan |
The span of the ITextChange in the snapshot immediately after the change. |
NewText |
The text that replaced the old text. |
OldEnd |
The end position of the OldText in the snapshot immediately before the change. |
OldLength |
The length of OldText. |
OldPosition |
The position of the text change in the snapshot immediately before the change. The position can differ from NewPosition only when there is more than one ITextChange included in moving from one snapshot to the next. |
OldSpan |
The span of the text change in the snapshot immediately before the change. |
OldText |
The text that was replaced. |