次の方法で共有


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

'宣言
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

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

See Also

Reference

NormalizedSpanCollection Class

NormalizedSpanCollection Overload

Microsoft.VisualStudio.Text Namespace