NormalizedSnapshotSpanCollection.OverlapsWith Method (NormalizedSnapshotSpanCollection)
Determines whether this normalized snapshot span collection overlaps with another collection.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'宣告
Public Function OverlapsWith ( _
set As NormalizedSnapshotSpanCollection _
) As Boolean
public bool OverlapsWith(
NormalizedSnapshotSpanCollection set
)
public:
bool OverlapsWith(
NormalizedSnapshotSpanCollection^ set
)
member OverlapsWith :
set:NormalizedSnapshotSpanCollection -> bool
public function OverlapsWith(
set : NormalizedSnapshotSpanCollection
) : boolean
Parameters
- set
Type: Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection
The normalized snapshot span collection.
Return Value
Type: System.Boolean
true if the collections refer to the same snapshot and their spans overlap, otherwise false.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | set is nulla null reference (Nothing in Visual Basic). |
ArgumentException | The collections refer to different snapshots. |
.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.