共用方式為


Span.IntersectsWith 方法

判斷 span 是否與這個延伸交叉。

命名空間:  Microsoft.VisualStudio.Text
組件:  Microsoft.VisualStudio.Text.Data (在 Microsoft.VisualStudio.Text.Data.dll 中)

語法

'宣告
Public Function IntersectsWith ( _
    span As Span _
) As Boolean
public bool IntersectsWith(
    Span span
)
public:
bool IntersectsWith(
    Span span
)
member IntersectsWith : 
        span:Span -> bool
public function IntersectsWith(
    span : Span
) : boolean

參數

傳回值

類型:Boolean
如果這些延伸有交集,則為 true,否則為 false。

備註

兩個 span 交叉是否共通點,具有位置,或是與其他範圍的開頭相合的一個範圍的結尾。

.NET Framework 安全性

請參閱

參考

Span 結構

Microsoft.VisualStudio.Text 命名空間