Span.Intersection(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 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.