Freigeben über


Span.Intersection Method

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

Namespace:  Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'Declaration
Public Function Intersection ( _
    span As Span _
) As Nullable(Of Span)
public Nullable<Span> Intersection(
    Span span
)
public:
Nullable<Span> Intersection(
    Span span
)
member Intersection : 
        span:Span -> Nullable<Span> 
public function Intersection(
    span : Span
) : Nullable<Span>

Parameters

Return Value

Type: System.Nullable<Span>
The intersection of the spans, or nulla null reference (Nothing in Visual Basic) if they do not intersect.

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.

.NET Framework Security

See Also

Reference

Span Structure

Microsoft.VisualStudio.Text Namespace