# Prose.Text class

Namespace: [Grasshopper2](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class Prose.Text : IComparable<Prose.Text>, IEquatable<Prose.Text>
```

Represents a string with alternating textual and numeric fragments. This makes mixed number/text comparisons much faster and more reliable.

## Properties

- [Count](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.text/count.md): Gets the total number of fragments.
- [Fragments](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.text/fragments.md): Enumerate over all fragments in this text, returning either a string, or the numeric value.
- [IsEmpty](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.text/isempty.md): Gets whether this string is empty.
- [Length](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.text/length.md): Gets the total length of the entire text.

## Methods

- [Comparer](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.text/comparer.md): (static) Create an [IComparer<T>](https://learn.microsoft.com/dotnet/api/system.collections.generic.icomparer-1) for [Prose.Text](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.text.md).
- [CompareTo](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.text/compareto.md): (2 overloads) Compare two alphanumeric strings.
- [Create](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.text/create.md): (static) Create a [Prose.Text](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.text.md) from a sequence of textual and numeric fragments.
- [Equals](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.text/equals.md): (3 overloads)
- [FragmentAt](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.text/fragmentat.md): Get the fragment which contains the given character index.
- [FragmentSpan](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.text/fragmentspan.md): Gets the character span of a given fragment.
- [GetHashCode](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.text/gethashcode.md)
- [Parse](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.text/parse.md): (static) Parse a string and extract the alphabetic and numeric parts.
- [TextFragment](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.text/textfragment.md): Gets the string fragment at the given index.
- [ToString](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.text/tostring.md): Recreate the original string.
- [ValueFragment](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.text/valuefragment.md): Gets the string fragment or numeric value at the given index.

## Operators

- [operator +](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.text/op-addition.md): (static) Append one numeric string to another.

## Convertors

- [operator implicit](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.text/op-implicit.md): (static) Auto convert a string into a [Prose.Text](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose.text.md).
