# LanguageExtensionMethods.StringLength examples

Examples for [StringLength](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.linguistic.languageextensionmethods/stringlength.md) in Grasshopper2.Types.Linguistic.LanguageExtensionMethods.

## C#

```cs
using Grasshopper2.Types.Linguistic;

// As an extension method
int result = language.StringLength(text);

// As a static method
result = LanguageExtensionMethods.StringLength(language, text);
```

## Python

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

# As an extension method
result = language.StringLength(text)

# As a static method
result = Grasshopper2.Types.Linguistic.LanguageExtensionMethods.StringLength(language, text)
```
