NormalizedSnapshotSpanCollection Constructor (ITextSnapshot^, IList<Span>^)

 

Initializes a new instance of a NormalizedSnapshotSpanCollection from a NormalizedSpanCollection and a ITextSnapshot.

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

public:
NormalizedSnapshotSpanCollection(
	ITextSnapshot^ snapshot,
	IList<Span>^ spans
)

Parameters

snapshot
Type: Microsoft.VisualStudio.Text::ITextSnapshot^

The ITextSnapshot"/> to apply to < spans.

spans
Type: System.Collections.Generic::IList<Span>^

The normalized spans.

Exception Condition
"T:System.ArgumentNullException

snapshot or spans is null.

ArgumentException

The spans in spans extend beyond the end of snapshot.

Return to top
Show: