NormalizedSnapshotSpanCollection Constructor (IList<SnapshotSpan>^)

 

Initializes a new instance of a NormalizedSnapshotSpanCollection from a list of Span objects.

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

public:
NormalizedSnapshotSpanCollection(
	IList<SnapshotSpan>^ snapshotSpans
)

Parameters

snapshotSpans
Type: System.Collections.Generic::IList<SnapshotSpan>^

An arbitrary set of < SnapshotSpan objects.

Exception Condition
ArgumentNullException

snapshot or spans is null.

ArgumentException

A SnapshotSpan is uninitialized, or it does not refer to the same T:Microsoft.VisualStudio.Text.ITextSnapshot as the other snapshot spans, or it refers to an uninitialized ITextSnapshot.

Return to top
Show: