Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Determines whether the start of the given span occurs before the end of the span.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.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)
Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
Syntax
'Declaration
Public Shared Function IsPositive ( _
span As TextSpan _
) As Boolean
public static bool IsPositive(
TextSpan span
)
public:
static bool IsPositive(
TextSpan span
)
static member IsPositive :
span:TextSpan -> bool
public static function IsPositive(
span : TextSpan
) : boolean
Parameters
span
Type: Microsoft.VisualStudio.TextManager.Interop.TextSpan[in] The TextSpan object that is being tested.
Return Value
Type: Boolean
Returns true if the start of the span is less than or equal to the end of the span; otherwise, returns false.
Remarks
A span that is not considered positive can be made positive by calling the MakePositive method.
.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.