NormalizedSnapshotSpanCollection.IntersectsWith 方法 (NormalizedSnapshotSpanCollection)

确定此集合是否与另一规范化快照范围集合相交。

命名空间:  Microsoft.VisualStudio.Text
程序集:  Microsoft.VisualStudio.Text.Data(在 Microsoft.VisualStudio.Text.Data.dll 中)

语法

声明
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

参数

返回值

类型:Boolean
如果集合相交,则为 true;否则为 false。

异常

异常 条件
ArgumentNullException

set 为 nullnull 引用(在 Visual Basic 中为 Nothing)。

ArgumentException

集合是引用不同的快照。

.NET Framework 安全性

请参阅

参考

NormalizedSnapshotSpanCollection 类

IntersectsWith 重载

Microsoft.VisualStudio.Text 命名空间