TextSpanHelper.Merge 方法

将两个给定范围创建一个新范围。

命名空间:  Microsoft.VisualStudio.Package
程序集:   Microsoft.VisualStudio.Package.LanguageService.11.0(在 Microsoft.VisualStudio.Package.LanguageService.11.0.dll 中)
  Microsoft.VisualStudio.Package.LanguageService(在 Microsoft.VisualStudio.Package.LanguageService.dll 中)
  Microsoft.VisualStudio.Package.LanguageService.9.0(在 Microsoft.VisualStudio.Package.LanguageService.9.0.dll 中)
  Microsoft.VisualStudio.Package.LanguageService.10.0(在 Microsoft.VisualStudio.Package.LanguageService.10.0.dll 中)

语法

声明
Public Shared Function Merge ( _
    span1 As TextSpan, _
    span2 As TextSpan _
) As TextSpan
public static TextSpan Merge(
    TextSpan span1,
    TextSpan span2
)

参数

返回值

类型:Microsoft.VisualStudio.TextManager.Interop.TextSpan
返回是将 span1 和 span2结果的 TextSpan 对象。

备注

为合并的结果是具有最低的起点 span1 ,并 span2 和最高点 span1 和 span2的新范围。

.NET Framework 安全性

请参见

参考

TextSpanHelper 类

Microsoft.VisualStudio.Package 命名空间