Share via


NormalizedTextRangeCollection.Intersect Method

Definition

Overloads

Intersect(NormalizedTextRangeCollection)

Intersects the current collection with another collection of ranges.

Intersect(IEnumerable<TextRange>)

Intersects the current collection with another collection of ranges.

Intersect(NormalizedTextRangeCollection)

Intersects the current collection with another collection of ranges.

public Microsoft.VisualStudio.Extensibility.Editor.NormalizedTextRangeCollection Intersect(Microsoft.VisualStudio.Extensibility.Editor.NormalizedTextRangeCollection other);
member this.Intersect : Microsoft.VisualStudio.Extensibility.Editor.NormalizedTextRangeCollection -> Microsoft.VisualStudio.Extensibility.Editor.NormalizedTextRangeCollection
Public Function Intersect (other As NormalizedTextRangeCollection) As NormalizedTextRangeCollection

Parameters

other
NormalizedTextRangeCollection

The collection of ranges to intersect the current collection with.

Returns

The intersection between the two collection of ranges.

Exceptions

If the two collections refer to different document snapshots.

Applies to

Intersect(IEnumerable<TextRange>)

Intersects the current collection with another collection of ranges.

public Microsoft.VisualStudio.Extensibility.Editor.NormalizedTextRangeCollection Intersect(System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Extensibility.Editor.TextRange> other);
member this.Intersect : seq<Microsoft.VisualStudio.Extensibility.Editor.TextRange> -> Microsoft.VisualStudio.Extensibility.Editor.NormalizedTextRangeCollection
Public Function Intersect (other As IEnumerable(Of TextRange)) As NormalizedTextRangeCollection

Parameters

other
IEnumerable<TextRange>

The collection of ranges to intersect the current collection with.

Returns

The intersection between the two collection of ranges.

Exceptions

If the two collections refer to different document snapshots.

Applies to