Condividi tramite


IProjectionSnapshot.GetSourceSpans Method

Gets all the source spans for the projection snapshot.

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

Syntax

'Declaration
Function GetSourceSpans As ReadOnlyCollection(Of SnapshotSpan)
ReadOnlyCollection<SnapshotSpan> GetSourceSpans()
ReadOnlyCollection<SnapshotSpan>^ GetSourceSpans()
abstract GetSourceSpans : unit -> ReadOnlyCollection<SnapshotSpan> 
function GetSourceSpans() : ReadOnlyCollection<SnapshotSpan>

Return Value

Type: ReadOnlyCollection<SnapshotSpan>
A read-only collection of source spans of the projection snapshot, listed in the order they have in the projection snapshot.

Remarks

The collection may be empty.

.NET Framework Security

See Also

Reference

IProjectionSnapshot Interface

GetSourceSpans Overload

Microsoft.VisualStudio.Text.Projection Namespace