Поделиться через


TextSpanHelper.MakePositive Method

Makes the given span positive.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)

Syntax

'Декларация
Public Shared Sub MakePositive ( _
    ByRef span As TextSpan _
)
public static void MakePositive(
    ref TextSpan span
)

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

Microsoft.VisualStudio.Package Namespace