共用方式為


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

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

See Also

Reference

NormalizedSnapshotSpanCollection Class

IntersectsWith Overload

Microsoft.VisualStudio.Text Namespace