Expand Minimize
This topic has not yet been rated - Rate this topic

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
CustomCustom client-determined tracking behavior.
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.
EdgeNegativeBoth edges of the span are negative tracking (insertions push the current position toward the start).
EdgePositiveBoth edges of the span are positive tracking (insertions push the current position toward the end).
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.