Condividi tramite


TextSpanHelper.Merge(TextSpan, TextSpan) Method

Definition

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

span1
TextSpan

[in] The first TextSpan object to be merged.

span2
TextSpan

[in] The second TextSpan object to be merged.

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.

Applies to