Condividi tramite


ITrackingSpan.GetSpan Method (ITextVersion)

Maps the tracking span to the specified version of its text buffer.

Namespace:  Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'Dichiarazione
Function GetSpan ( _
    version As ITextVersion _
) As Span
Span GetSpan(
    ITextVersion version
)
Span GetSpan(
    ITextVersion^ version
)
abstract GetSpan : 
        version:ITextVersion -> Span 
function GetSpan(
    version : ITextVersion
) : Span

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.Span
The Span.

Exceptions

Exception Condition
ArgumentNullException

version is nulla null reference (Nothing in Visual Basic).

ArgumentException

version is not a version of TextBuffer.

.NET Framework Security

See Also

Reference

ITrackingSpan Interface

GetSpan Overload

Microsoft.VisualStudio.Text Namespace