다음을 통해 공유


TextSpanHelper.MakePositive Method

Makes the given span positive.

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 Sub MakePositive ( _
    ByRef span As TextSpan _
)
‘사용 방법
Dim span As TextSpan

TextSpanHelper.MakePositive(span)
public static void MakePositive(
    ref TextSpan span
)
public:
static void MakePositive(
    TextSpan% span
)
static member MakePositive : 
        span:TextSpan byref -> unit 
public static function MakePositive(
    span : TextSpan
)

Parameters

Remarks

A positive span is one in which the start of the span is less than or equal to the end of the span. This method first determines whether the span is already positive and, if it is not, swaps the start and end points of the span. This means that if a span is already positive, this method does nothing.

.NET Framework Security

See Also

Reference

TextSpanHelper Class

TextSpanHelper Members

Microsoft.VisualStudio.Package Namespace