TextOffsetTrackingMode Enum
Specifies how a text offset is updated by text change operations that occur around it.
public enum TextOffsetTrackingMode
Fields
| Name |
Description |
| Negative |
The text offset tends to move in a negative (towards document start) direction when text change operations occur next to it.
If the text offset is 3, and a single character is inserted at offset 2,
the text offset slides forward a character and becomes 4.
If the text offset is 3, and a single character is inserted at offset 3,
the text offset remains 3.
If the text offset is 3, and the text range {2,4} is replaced with text Foo,
the text offset moves to 2, which is the start of the text change operation.
|
| Positive |
The text offset tends to move in a positive (towards document end) direction when text change operations occur next to it.
If the text offset is 3, and a single character is inserted at offset 2,
the text offset slides forward a character and becomes 4.
If the text offset is 3, and a single character is inserted at offset 3,
the text offset slides forward a character and becomes 4.
If the text offset is 3, and the text range {2,4} is replaced with text Foo,
the text offset moves to 5, which is the end of the text change operation's insertion.
|