TextPositionTrackingMode Enum
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.
Represents tracking modes for TextPositions across versions of an ITextDocumentSnapshot.
public enum TextPositionTrackingMode
type TextPositionTrackingMode =
Public Enum TextPositionTrackingMode
- Inheritance
-
TextPositionTrackingMode
Fields
Name | Value | Description |
---|---|---|
Positive | 0 | With this setting, a position tracks toward the end of the document, so that an insertion at the current position pushes the position to the end of the inserted text. If a replacement contains the position, it will end up at the end of the replacement text. |
Negative | 1 | With this setting, a position tracks toward the beginning of the document, so that an insertion at the current position leaves the position unaffected. If a replacement contains the position, it will end up at the beginning of the replacement text. |