# GH_EtoUtil.CenterFormOnEditor examples

Examples for [CenterFormOnEditor](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-etoutil/centerformoneditor.md) in Grasshopper.GUI.GH_EtoUtil.

## C#

```cs
using Grasshopper.GUI;

// As an extension method
F.CenterFormOnEditor(limitToScreen);

// As a static method
GH_EtoUtil.CenterFormOnEditor(F, limitToScreen);
```

## Python

```python
import clr
clr.AddReference('Grasshopper')
import Grasshopper.GUI
clr.ImportExtensions(Grasshopper.GUI)

# As an extension method
f.CenterFormOnEditor(limit_to_screen)

# As a static method
Grasshopper.GUI.GH_EtoUtil.CenterFormOnEditor(f, limit_to_screen)
```
