We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

SpanTrackingMode Enumeration

Represents tracking modes for ITrackingSpan objects.

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

public enum SpanTrackingMode

Member nameDescription
EdgeExclusiveThe 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.
EdgeInclusiveThe 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.
EdgePositiveBoth edges of the span are positive tracking (insertions push the current position toward the end).
EdgeNegativeBoth edges of the span are negative tracking (insertions push the current position toward the start).
CustomCustom client-determined tracking behavior.
Show: