ITextVersion.CreateTrackingSpan Method (Span, SpanTrackingMode, TrackingFidelityMode)
Creates a ITrackingSpan in this version.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Declaration
Function CreateTrackingSpan ( _
span As Span, _
trackingMode As SpanTrackingMode, _
trackingFidelity As TrackingFidelityMode _
) As ITrackingSpan
ITrackingSpan CreateTrackingSpan(
Span span,
SpanTrackingMode trackingMode,
TrackingFidelityMode trackingFidelity
)
ITrackingSpan^ CreateTrackingSpan(
Span span,
SpanTrackingMode trackingMode,
TrackingFidelityMode trackingFidelity
)
abstract CreateTrackingSpan :
span:Span *
trackingMode:SpanTrackingMode *
trackingFidelity:TrackingFidelityMode -> ITrackingSpan
function CreateTrackingSpan(
span : Span,
trackingMode : SpanTrackingMode,
trackingFidelity : TrackingFidelityMode
) : ITrackingSpan
Parameters
span
Type: Microsoft.VisualStudio.Text.SpanThe span of text in this snapshot that the ITrackingSpan should represent.
trackingMode
Type: Microsoft.VisualStudio.Text.SpanTrackingModeHow the ITrackingSpan will react to changes at its boundaries.
trackingFidelity
Type: Microsoft.VisualStudio.Text.TrackingFidelityModeThe tracking fidelity of the span.
Return Value
Type: Microsoft.VisualStudio.Text.ITrackingSpan
A non-null ITrackingSpan.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | span.End is greater than Length, or trackingMode is equal to Custom. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.