# RangeExtensions.Length examples

Examples for [Length](https://eto.picoe.ca/api/type/eto.forms.rangeextensions/length.md) in Eto.Forms.RangeExtensions.

## C#

```cs
using Eto.Forms;

// As an extension method
int result = range.Length();

// As a static method
result = RangeExtensions.Length(range);
```

## Python

```python
import clr
clr.AddReference('Eto')
import Eto.Forms
clr.ImportExtensions(Eto.Forms)

# As an extension method
result = range.Length()

# As a static method
result = Eto.Forms.RangeExtensions.Length(range)
```
