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
'Declaration
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
version
Type: Microsoft.VisualStudio.Text.ITextVersionThe version to which to map the tracking span.
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
- 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.