SnapshotSpan.Intersection Method (Span)
Calculates the intersection with the given span.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Déclaration
Public Function Intersection ( _
simpleSpan As Span _
) As Nullable(Of SnapshotSpan)
public Nullable<SnapshotSpan> Intersection(
Span simpleSpan
)
public:
Nullable<SnapshotSpan> Intersection(
Span simpleSpan
)
member Intersection :
simpleSpan:Span -> Nullable<SnapshotSpan>
public function Intersection(
simpleSpan : Span
) : Nullable<SnapshotSpan>
Parameters
- simpleSpan
Type: Microsoft.VisualStudio.Text.Span
The span to check.
Return Value
Type: System.Nullable<SnapshotSpan>
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, and neither is empty.
.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.