TextSpanHelper.IsPositive(TextSpan) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether the start of the given span occurs before the end of the span.
public:
static bool IsPositive(Microsoft::VisualStudio::TextManager::Interop::TextSpan span);
public:
static bool IsPositive(Microsoft::VisualStudio::TextManager::Interop::TextSpan span);
static bool IsPositive(Microsoft::VisualStudio::TextManager::Interop::TextSpan span);
public static bool IsPositive (Microsoft.VisualStudio.TextManager.Interop.TextSpan span);
static member IsPositive : Microsoft.VisualStudio.TextManager.Interop.TextSpan -> bool
Public Shared Function IsPositive (span As TextSpan) As Boolean
Parameters
Returns
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.