Makes the given span positive.
Namespace: Microsoft.VisualStudio.Package
Assembly: 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
)
public static function MakePositive(
span : TextSpan
)
Parameters
span
Type: Microsoft.VisualStudio.TextManager.Interop.TextSpan%[in] The TextSpan object to be modified.
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 if the span is already positive and if not, swaps the start and end points of the span. This means that if a span is already positive, this method does nothing.
Permissions
- 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.