SnapshotSpan.OverlapsWith Method (Span)
Determines whether simpleSpan overlaps this span.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'宣言
Public Function OverlapsWith ( _
simpleSpan As Span _
) As Boolean
public bool OverlapsWith(
Span simpleSpan
)
public:
bool OverlapsWith(
Span simpleSpan
)
member OverlapsWith :
simpleSpan:Span -> bool
public function OverlapsWith(
simpleSpan : Span
) : boolean
Parameters
- simpleSpan
Type: Microsoft.VisualStudio.Text.Span
The span to check.
Return Value
Type: System.Boolean
tru e if the spans overlap, otherwise false.
Remarks
Two spans overlap if they have positions in common and are not 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.