Share via


TextPositionTrackingMode Enum

Definition

Represents tracking modes for TextPositions across versions of an ITextDocumentSnapshot.

public enum TextPositionTrackingMode
type TextPositionTrackingMode = 
Public Enum TextPositionTrackingMode
Inheritance
TextPositionTrackingMode

Fields

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.

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.

Applies to