TextSpanHelper.IsEmpty Method
Determines whether the given span is empty.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Syntax
'宣言
Public Shared Function IsEmpty ( _
span As TextSpan _
) As Boolean
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.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.