ITextVersion.CreateCustomTrackingSpan Method
Creates a custom ITrackingSpan in this version.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Declaration
Function CreateCustomTrackingSpan ( _
span As Span, _
trackingFidelity As TrackingFidelityMode, _
customState As Object, _
behavior As CustomTrackToVersion _
) As ITrackingSpan
ITrackingSpan CreateCustomTrackingSpan(
Span span,
TrackingFidelityMode trackingFidelity,
Object customState,
CustomTrackToVersion behavior
)
ITrackingSpan^ CreateCustomTrackingSpan(
Span span,
TrackingFidelityMode trackingFidelity,
Object^ customState,
CustomTrackToVersion^ behavior
)
abstract CreateCustomTrackingSpan :
span:Span *
trackingFidelity:TrackingFidelityMode *
customState:Object *
behavior:CustomTrackToVersion -> ITrackingSpan
function CreateCustomTrackingSpan(
span : Span,
trackingFidelity : TrackingFidelityMode,
customState : Object,
behavior : CustomTrackToVersion
) : ITrackingSpan
Parameters
span
Type: Microsoft.VisualStudio.Text.SpanThe span of text in this snapshot that the ITrackingSpan should represent.
trackingFidelity
Type: Microsoft.VisualStudio.Text.TrackingFidelityModeThe tracking fidelity of the span.
customState
Type: ObjectClient-defined state associated with the span.
behavior
Type: Microsoft.VisualStudio.Text.CustomTrackToVersionThe custom tracking behavior.
Return Value
Type: Microsoft.VisualStudio.Text.ITrackingSpan
A non-null ITrackingSpan.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | span.End is greater than Length. |
.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.