ITextSnapshot.CreateTrackingSpan Method (Int32, Int32, SpanTrackingMode, TrackingFidelityMode)
Creates a ITrackingSpan in this snapshot.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
‘선언
Function CreateTrackingSpan ( _
start As Integer, _
length As Integer, _
trackingMode As SpanTrackingMode, _
trackingFidelity As TrackingFidelityMode _
) As ITrackingSpan
ITrackingSpan CreateTrackingSpan(
int start,
int length,
SpanTrackingMode trackingMode,
TrackingFidelityMode trackingFidelity
)
ITrackingSpan^ CreateTrackingSpan(
int start,
int length,
SpanTrackingMode trackingMode,
TrackingFidelityMode trackingFidelity
)
abstract CreateTrackingSpan :
start:int *
length:int *
trackingMode:SpanTrackingMode *
trackingFidelity:TrackingFidelityMode -> ITrackingSpan
function CreateTrackingSpan(
start : int,
length : int,
trackingMode : SpanTrackingMode,
trackingFidelity : TrackingFidelityMode
) : ITrackingSpan
Parameters
- start
Type: System.Int32
The starting position of the tracking span.
- length
Type: System.Int32
The length of the tracking span.
- trackingMode
Type: Microsoft.VisualStudio.Text.SpanTrackingMode
How the tracking span should react to changes at its boundaries.
- trackingFidelity
Type: Microsoft.VisualStudio.Text.TrackingFidelityMode
The tracking fidelity mode.
Return Value
Type: Microsoft.VisualStudio.Text.ITrackingSpan
A non-null ITrackingSpan.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | start is negative or greater than Length, or length is negative, or start plus length is less than start. |
.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.