IProjectionSnapshot::GetSourceSpans Method (Int32, Int32)
Visual Studio 2015
Gets a read-only collection of source snapshot spans starting at the specified location of the span.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Parameters
- startSpanIndex
-
Type:
System::Int32
The position at which to start getting snapshot spans. This is an index into the collection of source spans, not into the characters in the text buffer.
- count
-
Type:
System::Int32
The number of spans to get.
Return Value
Type: System.Collections.ObjectModel::ReadOnlyCollection<SnapshotSpan>^A read-only collection of SnapshotSpan objects that are sources of the projection snapshot.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | startSpanIndex is less than zero or greater than the number of spans. -or- count is less than zero or count plus startSpanIndex is greater than of the number of spans. |
Show: