TextSpanHelper.IsEmpty Method

Determines whether the given span is empty.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Syntax

'Declaration
Public Shared Function IsEmpty ( _
    span As TextSpan _
) As Boolean
'Usage
Dim span As TextSpan 
Dim returnValue As Boolean 

returnValue = TextSpanHelper.IsEmpty(span)
public static bool IsEmpty(
    TextSpan span
)
public:
static bool IsEmpty(
    TextSpan span
)
public static function IsEmpty(
    span : TextSpan
) : boolean

Parameters

Return Value

Type: System.Boolean
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.

.NET Framework Security

See Also

Reference

TextSpanHelper Class

TextSpanHelper Members

Microsoft.VisualStudio.Package Namespace