Freigeben über


NormalizedSnapshotSpanCollection Constructor (ITextSnapshot, NormalizedSpanCollection)

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)

Syntax

'Declaration
Public Sub New ( _
    snapshot As ITextSnapshot, _
    spans As NormalizedSpanCollection _
)
public NormalizedSnapshotSpanCollection(
    ITextSnapshot snapshot,
    NormalizedSpanCollection spans
)
public:
NormalizedSnapshotSpanCollection(
    ITextSnapshot^ snapshot, 
    NormalizedSpanCollection^ spans
)
new : 
        snapshot:ITextSnapshot * 
        spans:NormalizedSpanCollection -> NormalizedSnapshotSpanCollection
public function NormalizedSnapshotSpanCollection(
    snapshot : ITextSnapshot, 
    spans : NormalizedSpanCollection
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

snapshot or spans is null.

ArgumentException

The spans in spans extend beyond the end of snapshot.

.NET Framework Security

See Also

Reference

NormalizedSnapshotSpanCollection Class

NormalizedSnapshotSpanCollection Overload

Microsoft.VisualStudio.Text Namespace