TextSpanHelper::MakePositive Method (TextSpan)
Visual Studio 2015
Makes the given span positive.
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
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.
Show: