# Prose.ToSuperscript examples

Examples for [ToSuperscript](https://developer.rhino3d.com/api/gh2/type/grasshopper2.prose/tosuperscript.md) in Grasshopper2.Prose.

## C#

```cs
using Grasshopper2;

// As an extension method
string result = text.ToSuperscript();

// As a static method
result = Prose.ToSuperscript(text);
```

## Python

```python
import clr
clr.AddReference('Grasshopper2')
import Grasshopper2
clr.ImportExtensions(Grasshopper2)

# As an extension method
result = text.ToSuperscript()

# As a static method
result = Grasshopper2.Prose.ToSuperscript(text)
```
