TextSpanHelper::Merge Method (TextSpan, TextSpan)
Visual Studio 2015
Merges the two given spans to create a new span.
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
Parameters
- span1
-
Type:
Microsoft.VisualStudio.TextManager.Interop::TextSpan
[in] The first TextSpan object to be merged.
- span2
-
Type:
Microsoft.VisualStudio.TextManager.Interop::TextSpan
[in] The second TextSpan object to be merged.
Return Value
Type: Microsoft.VisualStudio.TextManager.Interop::TextSpanReturns a TextSpan object that is the result of merging span1 and span2.
The result of the merge is a new span that has the lowest start point of span1 and span2 and the highest end point of span1 and span2.
Show: