TextSpanHelper.IsEmpty(TextSpan) 方法

定义

确定给定跨度是否为空。

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

参数

span
TextSpan

TextSpan 要测试的对象。

返回

Boolean

true如果给定范围为空,则返回; 否则返回 false

注解

空跨度是指起点和终点位置相等的范围。 但是,这并不一定表示起点和终点均为0。

适用于