ITextSnapshot::CreateTrackingSpan Method (Span, SpanTrackingMode)
Visual Studio 2015
Creates a ITrackingSpan in this snapshot.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Parameters
- span
-
Type:
Microsoft.VisualStudio.Text::Span
The span of text in this snapshot.
- trackingMode
-
Type:
Microsoft.VisualStudio.Text::SpanTrackingMode
How the tracking span will react to changes at its boundaries.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The end of the span is greater than the length of the text snapshot. |
Show: