다음을 통해 공유


VirtualSnapshotSpan.Intersection Method

Returns the intersection with the given virtual span.

Namespace:  Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

Syntax

'Declaration
Public Function Intersection ( _
    virtualSpan As VirtualSnapshotSpan _
) As Nullable(Of VirtualSnapshotSpan)
public Nullable<VirtualSnapshotSpan> Intersection(
    VirtualSnapshotSpan virtualSpan
)
public:
Nullable<VirtualSnapshotSpan> Intersection(
    VirtualSnapshotSpan virtualSpan
)
member Intersection : 
        virtualSpan:VirtualSnapshotSpan -> Nullable<VirtualSnapshotSpan> 
public function Intersection(
    virtualSpan : VirtualSnapshotSpan
) : Nullable<VirtualSnapshotSpan>

Parameters

Return Value

Type: Nullable<VirtualSnapshotSpan>
The intersection of the spans, or nulla null reference (Nothing in Visual Basic) if the spans do not intersect.

.NET Framework Security

See Also

Reference

VirtualSnapshotSpan Structure

Microsoft.VisualStudio.Text Namespace