Span.Overlap(Span) 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.
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.