次の方法で共有


TextSpanHelper.IsPositive(TextSpan) Method

Definition

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

span
TextSpan

[in] The TextSpan object that is being tested.

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.

Applies to