In This Article

TextChangeOffsetDelta Enum

Specifies how an ITextChange's ITextChangeOperation offsets are modified based on previously-added operations.

public enum TextChangeOffsetDelta

Fields

Name Description
None

No offset delta is applied to operations.

SequentialOnly

An offset delta is tracked based on the net length change of previously-added operations. This offset delta is applied to the start offset of any newly-added operation.

It is important to note that this option cannot be used if any newly-added operation will be made before a previously-added operation.

This option is extremely handy when sequentially adding operations based on the original snapshot's offsets since it automatically applies the offset delta to ensure that operations are updating the correct text range.