Condividi tramite


IMappingSpan.GetSpans Method (ITextSnapshot)

Maps the span to a particular ITextSnapshot.

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

Syntax

'Dichiarazione
Function GetSpans ( _
    targetSnapshot As ITextSnapshot _
) As NormalizedSnapshotSpanCollection
NormalizedSnapshotSpanCollection GetSpans(
    ITextSnapshot targetSnapshot
)
NormalizedSnapshotSpanCollection^ GetSpans(
    ITextSnapshot^ targetSnapshot
)
abstract GetSpans : 
        targetSnapshot:ITextSnapshot -> NormalizedSnapshotSpanCollection 
function GetSpans(
    targetSnapshot : ITextSnapshot
) : NormalizedSnapshotSpanCollection

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection
The possibly empty collection of spans in the targetSnapshot to which the span maps.

Exceptions

Exception Condition
ArgumentNullException

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

.NET Framework Security

See Also

Reference

IMappingSpan Interface

GetSpans Overload

Microsoft.VisualStudio.Text Namespace