ITextVersion.CreateTrackingSpan Method (Int32, Int32, SpanTrackingMode)
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 ( _
start As Integer, _
length As Integer, _
trackingMode As SpanTrackingMode _
) As ITrackingSpan
ITrackingSpan CreateTrackingSpan(
int start,
int length,
SpanTrackingMode trackingMode
)
ITrackingSpan^ CreateTrackingSpan(
int start,
int length,
SpanTrackingMode trackingMode
)
abstract CreateTrackingSpan :
start:int *
length:int *
trackingMode:SpanTrackingMode -> ITrackingSpan
function CreateTrackingSpan(
start : int,
length : int,
trackingMode : SpanTrackingMode
) : ITrackingSpan
Parameters
start
Type: Int32The starting position of the ITrackingSpan in this version.
length
Type: Int32The length of the ITrackingSpan in this version.
trackingMode
Type: Microsoft.VisualStudio.Text.SpanTrackingModeHow the ITrackingSpan will react to changes at its boundaries.
Return Value
Type: Microsoft.VisualStudio.Text.ITrackingSpan
A non-null ITrackingSpan.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | start is negative or greater than the length of this version, or length is negative, or start + length is less than start, 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.