ITrackingSpan Interface
A span of text in an ITextBuffer that grows or shrinks with changes to the text buffer. The span may be empty.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
| Name | Description | |
|---|---|---|
![]() | TextBuffer | The ITextBuffer to which this tracking span refers. |
![]() | TrackingFidelity | The TrackingFidelityMode of the tracking span. |
![]() | TrackingMode | The T:Microsoft.VisualStudio.Text.SoanTrackingMode of this tracking span, which determines how it behaves when insertions occur at its edges. |
| Name | Description | |
|---|---|---|
![]() | GetEndPoint(ITextSnapshot) | Maps the end of the tracking span to the specified snapshot of its text buffer. |
![]() | GetSpan(ITextSnapshot) | Maps the tracking span to the specified snapshot of its text buffer. |
![]() | GetSpan(ITextVersion) | Maps the tracking span to the specified version of its text buffer. |
![]() | GetStartPoint(ITextSnapshot) | Maps the start of the tracking span to the specified snapshot of its text buffer. |
![]() | GetText(ITextSnapshot) | Maps the tracking span to the specified snapshot of its text buffer and gets the text it designates. |
For information about tracking, see the "Tracking Points and Tracking Spans" section of Inside the Editor.

