共用方式為


TextRangeTrackingMode Enum

Definition

Represents tracking modes for TextRange objects.

public enum TextRangeTrackingMode
type TextRangeTrackingMode = 
Public Enum TextRangeTrackingMode
Inheritance
TextRangeTrackingMode

Fields

Custom 4

Custom client-determined tracking behavior.

EdgeExclusive 0

The leading edge of the range is positive tracking (insertions push the current position towards the end) and the trailing edge is negative tracking (insertions push the current position towards the start). The range will not expand when text changes occur at the range boundaries. For example, if an EdgeExclusive range has Start position 3, and a single character is inserted at position 3, the range will then have Start position 4 and its length will be unchanged.

EdgeInclusive 1

The leading edge of the range is negative tracking (insertions push the current position toward the start) and the trailing edge is positive tracking (insertions push the current position toward the end). The range will expand when text changes occur at the range boundaries. For example, if an EdgeInclusive range has Start position 3, and a single character is inserted at position 3, the range will then have Start position 3 and its length will be increased by one.

EdgeNegative 3

Both edges of the range are negative tracking (insertions push the current position toward the start).

EdgePositive 2

Both edges of the range are positive tracking (insertions push the current position toward the end).

Applies to