NormalizedSpanCollection.Overlap 方法

定义

查找两个范围集的重叠。

public:
 static Microsoft::VisualStudio::Text::NormalizedSpanCollection ^ Overlap(Microsoft::VisualStudio::Text::NormalizedSpanCollection ^ left, Microsoft::VisualStudio::Text::NormalizedSpanCollection ^ right);
public static Microsoft.VisualStudio.Text.NormalizedSpanCollection Overlap (Microsoft.VisualStudio.Text.NormalizedSpanCollection left, Microsoft.VisualStudio.Text.NormalizedSpanCollection right);
static member Overlap : Microsoft.VisualStudio.Text.NormalizedSpanCollection * Microsoft.VisualStudio.Text.NormalizedSpanCollection -> Microsoft.VisualStudio.Text.NormalizedSpanCollection
Public Shared Function Overlap (left As NormalizedSpanCollection, right As NormalizedSpanCollection) As NormalizedSpanCollection

参数

left
NormalizedSpanCollection

第一个范围集。

right
NormalizedSpanCollection

第二个范围集。

返回

对应于 和 right重叠left的新范围集。

例外

leftright 为 null。

注解

此运算符在 O (N+M) N = 左的时间运行。Count,M = right。计数。

适用于