# RangeExtensions.WithLength examples

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

## C#

```cs
using Eto.Forms;

// As an extension method
Range<int> result = range.WithLength(length);

// As a static method
result = RangeExtensions.WithLength(range, length);
```

## Python

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

# As an extension method
result = range.WithLength(length)

# As a static method
result = Eto.Forms.RangeExtensions.WithLength(range, length)
```
