TextSpanHelper::IsEmpty Method (TextSpan)

 

Determines whether the given span is empty.

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

public:
static bool IsEmpty(
	TextSpan span
)

Parameters

span
Type: Microsoft.VisualStudio.TextManager.Interop::TextSpan

[in] The TextSpan object that is being tested.

Return Value

Type: System::Boolean

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

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.

Return to top
Show: