ITextVersion::CreateCustomTrackingSpan Method (Span, TrackingFidelityMode, Object^, CustomTrackToVersion^)
Visual Studio 2015
Creates a custom ITrackingSpan in this version.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
ITrackingSpan^ CreateCustomTrackingSpan( Span span, TrackingFidelityMode trackingFidelity, Object^ customState, CustomTrackToVersion^ behavior )
Parameters
- span
-
Type:
Microsoft.VisualStudio.Text::Span
The span of text in this snapshot that the ITrackingSpan should represent.
- trackingFidelity
-
Type:
Microsoft.VisualStudio.Text::TrackingFidelityMode
The tracking fidelity of the span.
- customState
-
Type:
System::Object^
Client-defined state associated with the span.
- behavior
-
Type:
Microsoft.VisualStudio.Text::CustomTrackToVersion^
The custom tracking behavior.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | span.End is greater than Length. |
Show: