Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Creates a ITrackingSpan in this snapshot.
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 _
) As ITrackingSpan
ITrackingSpan CreateTrackingSpan(
Span span,
SpanTrackingMode trackingMode
)
ITrackingSpan^ CreateTrackingSpan(
Span span,
SpanTrackingMode trackingMode
)
abstract CreateTrackingSpan :
span:Span *
trackingMode:SpanTrackingMode -> ITrackingSpan
function CreateTrackingSpan(
span : Span,
trackingMode : SpanTrackingMode
) : ITrackingSpan
Parameters
span
Type: Microsoft.VisualStudio.Text.SpanThe span of text in this snapshot.
trackingMode
Type: Microsoft.VisualStudio.Text.SpanTrackingModeHow the tracking span will react to changes at its boundaries.
Return Value
Type: Microsoft.VisualStudio.Text.ITrackingSpan
A non-null ITrackingSpan.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The end of the span is greater than the length of the text snapshot. |
.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.