TextSpanHelper Class

A utility class that provides useful methods for manipulating and comparing instances of the TextSpan class as well as validating positions.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.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
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 within 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.

See Also

Reference

TextSpanHelper Members

Microsoft.VisualStudio.Package Namespace