Compartilhar via


Span.Intersection(Span) Method

Definition

Returns the intersection with the given span, or null if there is no intersection.

public:
 Nullable<Microsoft::VisualStudio::Text::Span> Intersection(Microsoft::VisualStudio::Text::Span span);
public Microsoft.VisualStudio.Text.Span? Intersection (Microsoft.VisualStudio.Text.Span span);
member this.Intersection : Microsoft.VisualStudio.Text.Span -> Nullable<Microsoft.VisualStudio.Text.Span>
Public Function Intersection (span As Span) As Nullable(Of Span)

Parameters

span
Span

The span to check.

Returns

The intersection of the spans, or null if the intersection is empty.

Remarks

Two spans intersect if they have positions in common, or if the end of one span coincides with the start of the other span.

Applies to