Compartir a través de


NormalizedSnapshotSpanCollection Constructors

Definition

Overloads

NormalizedSnapshotSpanCollection()

Initializes an empty NormalizedSnapshotSpanCollection.

NormalizedSnapshotSpanCollection(SnapshotSpan)

Initializes a new instance of a NormalizedSnapshotSpanCollection with a single element.

NormalizedSnapshotSpanCollection(IEnumerable<SnapshotSpan>)

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

NormalizedSnapshotSpanCollection(IList<SnapshotSpan>)

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

NormalizedSnapshotSpanCollection(ITextSnapshot, NormalizedSpanCollection)

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

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

Initializes a new instance of a NormalizedSnapshotSpanCollection from a list of Spans and a ITextSnapshot.

NormalizedSnapshotSpanCollection(ITextSnapshot, IList<Span>)

Initializes a new instance of a NormalizedSnapshotSpanCollection from a list of Spans and a ITextSnapshot.

NormalizedSnapshotSpanCollection()

Initializes an empty NormalizedSnapshotSpanCollection.

public:
 NormalizedSnapshotSpanCollection();
public:
 NormalizedSnapshotSpanCollection();
 NormalizedSnapshotSpanCollection();
public NormalizedSnapshotSpanCollection ();
Public Sub New ()

Applies to

NormalizedSnapshotSpanCollection(SnapshotSpan)

Initializes a new instance of a NormalizedSnapshotSpanCollection with a single element.

public:
 NormalizedSnapshotSpanCollection(Microsoft::VisualStudio::Text::SnapshotSpan span);
 NormalizedSnapshotSpanCollection(Microsoft::VisualStudio::Text::SnapshotSpan span);
public NormalizedSnapshotSpanCollection (Microsoft.VisualStudio.Text.SnapshotSpan span);
new Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection : Microsoft.VisualStudio.Text.SnapshotSpan -> Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection
Public Sub New (span As SnapshotSpan)

Parameters

span
SnapshotSpan

The sole member of the collection.

Exceptions

span is not initialized.

Applies to

NormalizedSnapshotSpanCollection(IEnumerable<SnapshotSpan>)

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

public:
 NormalizedSnapshotSpanCollection(System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Text::SnapshotSpan> ^ snapshotSpans);
public NormalizedSnapshotSpanCollection (System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Text.SnapshotSpan> snapshotSpans);
new Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection : seq<Microsoft.VisualStudio.Text.SnapshotSpan> -> Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection
Public Sub New (snapshotSpans As IEnumerable(Of SnapshotSpan))

Parameters

snapshotSpans
IEnumerable<SnapshotSpan>

An arbitrary set of SnapshotSpan objects.

Exceptions

snapshotSpans is null.

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

Applies to

NormalizedSnapshotSpanCollection(IList<SnapshotSpan>)

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

public:
 NormalizedSnapshotSpanCollection(System::Collections::Generic::IList<Microsoft::VisualStudio::Text::SnapshotSpan> ^ snapshotSpans);
public NormalizedSnapshotSpanCollection (System.Collections.Generic.IList<Microsoft.VisualStudio.Text.SnapshotSpan> snapshotSpans);
new Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection : System.Collections.Generic.IList<Microsoft.VisualStudio.Text.SnapshotSpan> -> Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection
Public Sub New (snapshotSpans As IList(Of SnapshotSpan))

Parameters

snapshotSpans
IList<SnapshotSpan>

An arbitrary set of SnapshotSpan objects.

Exceptions

snapshotSpans is null.

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

Applies to

NormalizedSnapshotSpanCollection(ITextSnapshot, NormalizedSpanCollection)

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

public:
 NormalizedSnapshotSpanCollection(Microsoft::VisualStudio::Text::ITextSnapshot ^ snapshot, Microsoft::VisualStudio::Text::NormalizedSpanCollection ^ spans);
public NormalizedSnapshotSpanCollection (Microsoft.VisualStudio.Text.ITextSnapshot snapshot, Microsoft.VisualStudio.Text.NormalizedSpanCollection spans);
new Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection : Microsoft.VisualStudio.Text.ITextSnapshot * Microsoft.VisualStudio.Text.NormalizedSpanCollection -> Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection
Public Sub New (snapshot As ITextSnapshot, spans As NormalizedSpanCollection)

Parameters

snapshot
ITextSnapshot

The ITextSnapshot to apply to spans.

spans
NormalizedSpanCollection

The normalized spans.

Exceptions

snapshot or spans is null.

The spans in spans extend beyond the end of snapshot.

Applies to

NormalizedSnapshotSpanCollection(ITextSnapshot, Span)

public:
 NormalizedSnapshotSpanCollection(Microsoft::VisualStudio::Text::ITextSnapshot ^ snapshot, Microsoft::VisualStudio::Text::Span span);
public:
 NormalizedSnapshotSpanCollection(Microsoft::VisualStudio::Text::ITextSnapshot ^ snapshot, Microsoft::VisualStudio::Text::Span span);
 NormalizedSnapshotSpanCollection(Microsoft::VisualStudio::Text::ITextSnapshot const & snapshot, Microsoft::VisualStudio::Text::Span span);
public NormalizedSnapshotSpanCollection (Microsoft.VisualStudio.Text.ITextSnapshot snapshot, Microsoft.VisualStudio.Text.Span span);
new Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection : Microsoft.VisualStudio.Text.ITextSnapshot * Microsoft.VisualStudio.Text.Span -> Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection
Public Sub New (snapshot As ITextSnapshot, span As Span)

Parameters

snapshot
ITextSnapshot
span
Span

Applies to

NormalizedSnapshotSpanCollection(ITextSnapshot, IEnumerable<Span>)

Initializes a new instance of a NormalizedSnapshotSpanCollection from a list of Spans and a ITextSnapshot.

public:
 NormalizedSnapshotSpanCollection(Microsoft::VisualStudio::Text::ITextSnapshot ^ snapshot, System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Text::Span> ^ spans);
public NormalizedSnapshotSpanCollection (Microsoft.VisualStudio.Text.ITextSnapshot snapshot, System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Text.Span> spans);
new Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection : Microsoft.VisualStudio.Text.ITextSnapshot * seq<Microsoft.VisualStudio.Text.Span> -> Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection
Public Sub New (snapshot As ITextSnapshot, spans As IEnumerable(Of Span))

Parameters

snapshot
ITextSnapshot

The ITextSnapshot to apply to spans.

spans
IEnumerable<Span>

An arbitrary set of Span objects.

Exceptions

snapshot or spans is null.

The spans in spans extend beyond the end of snapshot.

Applies to

NormalizedSnapshotSpanCollection(ITextSnapshot, IList<Span>)

Initializes a new instance of a NormalizedSnapshotSpanCollection from a list of Spans and a ITextSnapshot.

public:
 NormalizedSnapshotSpanCollection(Microsoft::VisualStudio::Text::ITextSnapshot ^ snapshot, System::Collections::Generic::IList<Microsoft::VisualStudio::Text::Span> ^ spans);
public NormalizedSnapshotSpanCollection (Microsoft.VisualStudio.Text.ITextSnapshot snapshot, System.Collections.Generic.IList<Microsoft.VisualStudio.Text.Span> spans);
new Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection : Microsoft.VisualStudio.Text.ITextSnapshot * System.Collections.Generic.IList<Microsoft.VisualStudio.Text.Span> -> Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection
Public Sub New (snapshot As ITextSnapshot, spans As IList(Of Span))

Parameters

snapshot
ITextSnapshot

The ITextSnapshot to apply to spans.

spans
IList<Span>

An arbitrary set of Span objects.

Exceptions

snapshot or spans is null.

snapshot or spans is null.

The spans in spans extend beyond the end of snapshot.

Applies to