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

 

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

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

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

Parameters

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

The ITextSnapshot to apply to spans.

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

A set of Span objects.

Exception Condition
ArgumentNullException

snapshot or spans is null.

ArgumentException

The spans in spans extend beyond the end of snapshot.

Return to top
Show: