다음을 통해 공유


TextRange.Intersection(TextRange) Method

Definition

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.

Applies to