ITrackingSpan Interface

A span of text in an ITextBuffer that grows or shrinks with changes to the text buffer. The span may be empty.

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

'Declaration
Public Interface ITrackingSpan

The ITrackingSpan type exposes the following members.

  NameDescription
Public propertyTextBufferThe ITextBuffer to which this tracking span refers.
Public propertyTrackingFidelityThe TrackingFidelityMode of the tracking span.
Public propertyTrackingModeThe SoanTrackingMode of this tracking span, which determines how it behaves when insertions occur at its edges.
Top

  NameDescription
Public methodGetEndPointMaps the end of the tracking span to the specified snapshot of its text buffer.
Public methodGetSpan(ITextSnapshot)Maps the tracking span to the specified snapshot of its text buffer.
Public methodGetSpan(ITextVersion)Maps the tracking span to the specified version of its text buffer.
Public methodGetStartPointMaps the start of the tracking span to the specified snapshot of its text buffer.
Public methodGetTextMaps the tracking span to the specified snapshot of its text buffer and gets the text it designates.
Top

For information about tracking, see the "Tracking Points and Tracking Spans" section of Inside the Editor.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft