Delen via


SpanTrackingMode Enumeration

Represents tracking modes for ITrackingSpan objects.

Namespace:  Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'Declaration
Public Enumeration SpanTrackingMode
public enum SpanTrackingMode
public enum class SpanTrackingMode
type SpanTrackingMode
public enum SpanTrackingMode

Members

Member name Description
Custom Custom client-determined tracking behavior.
EdgeExclusive The leading edge of the span 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 span will not expand when text changes occur at the span boundaries. For example, if an EdgeExclusive Span has Start position 3, and a single character is inserted at position 3, the Span will then have Start position 4 and its length will be unchanged.
EdgeInclusive The leading edge of the span 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 span will expand when text changes occur at the span boundaries. For example, if an EdgeInclusive Span has Start position 3, and a single character is inserted at position 3, the Span will then have Start position 3 and its length will be increased by one.
EdgeNegative Both edges of the span are negative tracking (insertions push the current position toward the start).
EdgePositive Both edges of the span are positive tracking (insertions push the current position toward the end).

See Also

Reference

Microsoft.VisualStudio.Text Namespace