Freigeben über


VirtualSnapshotSpan.Overlap Method

Returns the overlap with the specified virtual span.

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

Syntax

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

Parameters

Return Value

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

.NET Framework Security

See Also

Reference

VirtualSnapshotSpan Structure

Microsoft.VisualStudio.Text Namespace