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
span
Type: Microsoft.VisualStudio.Text.SpanThe span to check.
Return Value
Type: 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.