NormalizedSpanCollection.Overlap Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Find the overlap of two span sets.
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
Parameters
The first span set.
- right
- NormalizedSpanCollection
The second span set.
Returns
The new span set that corresponds to the overlap of left
and right
.
Exceptions
left
or right
is null.
Remarks
This operator runs in O(N+M) time where N = left.Count, M = right.Count.