TextRange.Intersection(TextRange) 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.
Computes the intersection with the given TextRange, or null if there is no intersection.
public Microsoft.VisualStudio.Extensibility.Editor.TextRange? Intersection (Microsoft.VisualStudio.Extensibility.Editor.TextRange range);
member this.Intersection : Microsoft.VisualStudio.Extensibility.Editor.TextRange -> Nullable<Microsoft.VisualStudio.Extensibility.Editor.TextRange>
Public Function Intersection (range As TextRange) As Nullable(Of TextRange)
Parameters
- range
- TextRange
The range to check.
Returns
The intersection of the ranges, or null if the intersection is empty.
Exceptions
range
does not refer to the same snapshot.