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
'Декларация
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
- virtualSpan
Type: Microsoft.VisualStudio.Text.VirtualSnapshotSpan
The virtual span.
Return Value
Type: System.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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.