Partilhar via


NormalizedSpanCollection Constructors

Definition

Overloads

NormalizedSpanCollection()

Initializes a new instance of NormalizedSpanCollection that is empty.

NormalizedSpanCollection(Span)

Initializes a new instance of NormalizedSpanCollection that contains the specified span.

NormalizedSpanCollection(IEnumerable<Span>)

Initializes a new instance of NormalizedSpanCollection that contains the specified list of spans.

NormalizedSpanCollection(IList<Span>)

Initializes a new instance of NormalizedSpanCollection that contains the specified list of spans.

NormalizedSpanCollection()

Initializes a new instance of NormalizedSpanCollection that is empty.

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

Applies to

NormalizedSpanCollection(Span)

Initializes a new instance of NormalizedSpanCollection that contains the specified span.

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

Parameters

span
Span

Span contained by the span set.

Applies to

NormalizedSpanCollection(IEnumerable<Span>)

Initializes a new instance of NormalizedSpanCollection that contains the specified list of spans.

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

Parameters

spans
IEnumerable<Span>

The spans to be added.

Exceptions

spans is null.

Remarks

The list of spans will be sorted and normalized (overlapping and adjoining spans will be combined).

This constructor runs in O(N log N) time, where N = spans.Count.

Applies to

NormalizedSpanCollection(IList<Span>)

Initializes a new instance of NormalizedSpanCollection that contains the specified list of spans.

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

Parameters

spans
IList<Span>

The spans to be added.

Exceptions

spans is null.

Remarks

The list of spans will be sorted and normalized (overlapping and adjoining spans will be combined).

This constructor runs in O(N log N) time, where N = spans.Count.

Applies to