Sdílet prostřednictvím


VirtualSnapshotSpan.Overlap(VirtualSnapshotSpan) Method

Definition

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

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

Parameters

virtualSpan
VirtualSnapshotSpan

The virtual span to check.

Returns

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

Applies to