다음을 통해 공유


VirtualSnapshotSpan.OverlapsWith Method

Determines whether the specified span overlaps this span.

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

Syntax

'Declaration
Public Function OverlapsWith ( _
    virtualSpan As VirtualSnapshotSpan _
) As Boolean
public bool OverlapsWith(
    VirtualSnapshotSpan virtualSpan
)
public:
bool OverlapsWith(
    VirtualSnapshotSpan virtualSpan
)
member OverlapsWith : 
        virtualSpan:VirtualSnapshotSpan -> bool
public function OverlapsWith(
    virtualSpan : VirtualSnapshotSpan
) : boolean

Parameters

Return Value

Type: Boolean
true if the spans overlap, otherwise false.

Remarks

Two spans overlap if they have positions in common and neither is empty. Empty spans do not overlap with any other span.

.NET Framework Security

See Also

Reference

VirtualSnapshotSpan Structure

Microsoft.VisualStudio.Text Namespace