# RectangleExtensionMethods.SplitVertical examples

Examples for [SplitVertical](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.rectangleextensionmethods/splitvertical.md) in Grasshopper2.Extensions.RectangleExtensionMethods.

## C#

```cs
using Grasshopper2.Extensions;

// As an extension method
rectangle.SplitVertical(y0, y1, out RectangleF above, out RectangleF middle, out RectangleF below);

// As a static method
RectangleExtensionMethods.SplitVertical(rectangle, y0, y1, out above, out middle, out below);
```

## Python

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

# As an extension method
above, middle, below = rectangle.SplitVertical(y0, y1)

# As a static method
above, middle, below = Grasshopper2.Extensions.RectangleExtensionMethods.SplitVertical(rectangle, y0, y1)
```
