TextPositionTrackingMode Enum

Definition

Represents tracking modes for TextPositions across versions of an ITextDocumentSnapshot.

C#
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.

Applies to

Proizvod Verzije
Visual Studio SDK 2022