Aracılığıyla paylaş


Span.Overlap(Span) Method

Definition

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

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

Parameters

span
Span

The span to check.

Returns

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

Remarks

Two spans overlap if they have positions in common and neither is empty. Empty spans do not overlap with any other span.

Applies to