NormalizedSpanCollection Constructor (IEnumerable<Span>)
Initializes a new instance of NormalizedSpanCollection that contains the specified list of spans.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Declaración
Public Sub New ( _
spans As IEnumerable(Of Span) _
)
public NormalizedSpanCollection(
IEnumerable<Span> spans
)
public:
NormalizedSpanCollection(
IEnumerable<Span>^ spans
)
new :
spans:IEnumerable<Span> -> NormalizedSpanCollection
public function NormalizedSpanCollection(
spans : IEnumerable<Span>
)
Parameters
- spans
Type: System.Collections.Generic.IEnumerable<Span>
The spans to be added.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | spans is nulla null reference (Nothing in Visual Basic). |
Remarks
The list of spans is sorted and normalized. (Overlapping and adjoining spans will be combined.) This constructor runs in O(N log N) time, where N = spans.Count.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
NormalizedSpanCollection Class