TextSpanHelper.Merge(TextSpan, TextSpan) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Merges the two given spans to create a new span.
public:
static Microsoft::VisualStudio::TextManager::Interop::TextSpan Merge(Microsoft::VisualStudio::TextManager::Interop::TextSpan span1, Microsoft::VisualStudio::TextManager::Interop::TextSpan span2);
public:
static Microsoft::VisualStudio::TextManager::Interop::TextSpan Merge(Microsoft::VisualStudio::TextManager::Interop::TextSpan span1, Microsoft::VisualStudio::TextManager::Interop::TextSpan span2);
static Microsoft::VisualStudio::TextManager::Interop::TextSpan Merge(Microsoft::VisualStudio::TextManager::Interop::TextSpan span1, Microsoft::VisualStudio::TextManager::Interop::TextSpan span2);
public static Microsoft.VisualStudio.TextManager.Interop.TextSpan Merge (Microsoft.VisualStudio.TextManager.Interop.TextSpan span1, Microsoft.VisualStudio.TextManager.Interop.TextSpan span2);
static member Merge : Microsoft.VisualStudio.TextManager.Interop.TextSpan * Microsoft.VisualStudio.TextManager.Interop.TextSpan -> Microsoft.VisualStudio.TextManager.Interop.TextSpan
Public Shared Function Merge (span1 As TextSpan, span2 As TextSpan) As TextSpan
Parameters
Returns
Returns a TextSpan object that is the result of merging span1
and span2
.
Remarks
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
.