Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Finds the overlap of two span sets.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Declaration
Public Shared Function Overlap ( _
left As NormalizedSpanCollection, _
right As NormalizedSpanCollection _
) As NormalizedSpanCollection
public static NormalizedSpanCollection Overlap(
NormalizedSpanCollection left,
NormalizedSpanCollection right
)
public:
static NormalizedSpanCollection^ Overlap(
NormalizedSpanCollection^ left,
NormalizedSpanCollection^ right
)
static member Overlap :
left:NormalizedSpanCollection *
right:NormalizedSpanCollection -> NormalizedSpanCollection
public static function Overlap(
left : NormalizedSpanCollection,
right : NormalizedSpanCollection
) : NormalizedSpanCollection
Parameters
- left
Type: Microsoft.VisualStudio.Text.NormalizedSpanCollection
The first span set.
- right
Type: Microsoft.VisualStudio.Text.NormalizedSpanCollection
The second span set.
Return Value
Type: Microsoft.VisualStudio.Text.NormalizedSpanCollection
The new span set that corresponds to the overlap of left and right.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | left or right is nulla null reference (Nothing in Visual Basic). |
Remarks
This operator runs in O(N+M) time where N = left.Count, M = right.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.