NormalizedSnapshotSpanCollection.IntersectsWith Method (NormalizedSnapshotSpanCollection)
Determines whether this collection intersects with another normalized snapshot span collection.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
声明
Public Function IntersectsWith ( _
set As NormalizedSnapshotSpanCollection _
) As Boolean
public bool IntersectsWith(
NormalizedSnapshotSpanCollection set
)
public:
bool IntersectsWith(
NormalizedSnapshotSpanCollection^ set
)
member IntersectsWith :
set:NormalizedSnapshotSpanCollection -> bool
public function IntersectsWith(
set : NormalizedSnapshotSpanCollection
) : boolean
Parameters
- set
Type: Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection
The collection.
Return Value
Type: System.Boolean
true if the collections intersect, 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.