NormalizedTextRangeCollection.Intersect 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.
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
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.