Span.Intersection 方法

; 如果没有任何交集,获取与给定范围的交集 null。

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

语法

声明
Public Function Intersection ( _
    span As Span _
) As Nullable(Of Span)
public Nullable<Span> Intersection(
    Span span
)
public:
Nullable<Span> Intersection(
    Span span
)
member Intersection : 
        span:Span -> Nullable<Span> 
public function Intersection(
    span : Span
) : Nullable<Span>

参数

返回值

类型:Nullable<Span>
范围的交集 nullnull 引用(在 Visual Basic 中为 Nothing) ,如果它们不相交。

备注

两个范围相交,如果两个范围具有共同的位置,或者,如果一个范围的末尾与另一个范围的开头位于同一位置。

.NET Framework 安全性

请参阅

参考

Span 结构

Microsoft.VisualStudio.Text 命名空间