Sdílet prostřednictvím


TextSpanHelper.IsEmpty(TextSpan) Method

Definition

Determines whether the given span is empty.

public:
 static bool IsEmpty(Microsoft::VisualStudio::TextManager::Interop::TextSpan span);
public:
 static bool IsEmpty(Microsoft::VisualStudio::TextManager::Interop::TextSpan span);
 static bool IsEmpty(Microsoft::VisualStudio::TextManager::Interop::TextSpan span);
public static bool IsEmpty (Microsoft.VisualStudio.TextManager.Interop.TextSpan span);
static member IsEmpty : Microsoft.VisualStudio.TextManager.Interop.TextSpan -> bool
Public Shared Function IsEmpty (span As TextSpan) As Boolean

Parameters

span
TextSpan

[in] The TextSpan object that is being tested.

Returns

Returns true if the given span is empty; otherwise, returns false.

Remarks

An empty span is one in which the start and end positions are equal. However, this does not necessarily mean that the start and end points are 0.

Applies to