VirtualSnapshotSpan.Overlap(VirtualSnapshotSpan) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.