VirtualSnapshotSpan.Intersection(VirtualSnapshotSpan) Method

Definition

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

public:
 Nullable<Microsoft::VisualStudio::Text::VirtualSnapshotSpan> Intersection(Microsoft::VisualStudio::Text::VirtualSnapshotSpan virtualSpan);
public Microsoft.VisualStudio.Text.VirtualSnapshotSpan? Intersection (Microsoft.VisualStudio.Text.VirtualSnapshotSpan virtualSpan);
member this.Intersection : Microsoft.VisualStudio.Text.VirtualSnapshotSpan -> Nullable<Microsoft.VisualStudio.Text.VirtualSnapshotSpan>
Public Function Intersection (virtualSpan As VirtualSnapshotSpan) As Nullable(Of VirtualSnapshotSpan)

Parameters

virtualSpan
VirtualSnapshotSpan

The virtual span to check.

Returns

The intersection of the spans, or null if the intersection is empty.

Applies to