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
'Declaração
Function GetSourceSpans As ReadOnlyCollection(Of SnapshotSpan)
ReadOnlyCollection<SnapshotSpan> GetSourceSpans()
ReadOnlyCollection<SnapshotSpan>^ GetSourceSpans()
abstract GetSourceSpans : unit -> ReadOnlyCollection<SnapshotSpan>
function GetSourceSpans() : ReadOnlyCollection<SnapshotSpan>
Return Value
Type: System.Collections.ObjectModel.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
- 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.