VirtualSnapshotSpan.Intersection(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 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.