TextSpanHelper.Merge Method
Merges the two given spans to create a new span.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Syntax
‘선언
Public Shared Function Merge ( _
span1 As TextSpan, _
span2 As TextSpan _
) As TextSpan
‘사용 방법
Dim span1 As TextSpan
Dim span2 As TextSpan
Dim returnValue As TextSpan
returnValue = TextSpanHelper.Merge(span1, span2)
public static TextSpan Merge(
TextSpan span1,
TextSpan span2
)
public:
static TextSpan Merge(
TextSpan span1,
TextSpan span2
)
static member Merge :
span1:TextSpan *
span2:TextSpan -> TextSpan
public static function Merge(
span1 : TextSpan,
span2 : TextSpan
) : TextSpan
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.TextSpan
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.