TextSpanHelper Class
A utility class that provides methods for manipulating and comparing instances of the TextSpan class, and also for validating positions.
This API is not CLS-compliant.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Syntax
'宣言
<CLSCompliantAttribute(False)> _
Public NotInheritable Class TextSpanHelper
'使用
Dim instance As TextSpanHelper
[CLSCompliantAttribute(false)]
public sealed class TextSpanHelper
[CLSCompliantAttribute(false)]
public ref class TextSpanHelper sealed
[<SealedAttribute>]
[<CLSCompliantAttribute(false)>]
type TextSpanHelper = class end
public final class TextSpanHelper
Remarks
Manipulation includes clearing, normalizing, merging, and converting to and from a TextSpan2 class. Comparisons include determining the relationship of a point to a span and the relationship of two spans. Validation is done for a position or a span in a source buffer.
Notes to Implementers
All methods in this class are static and there is nothing from which to inherit.
Notes to Callers
All methods in this class are static and can be called at any time.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Package.TextSpanHelper
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.