# EtoFormsMenuExtensionMethods class

Namespace: [Grasshopper2.Extensions](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.extensions.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public static class EtoFormsMenuExtensionMethods
```

Provides extension methods for Eto.Forms.Menu and Eto.Forms.ContextMenu.

## Methods

- [AddItem](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.etoformsmenuextensionmethods/additem.md): (3 overloads, static) Append an item to a menu.
- [AddLabel](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.etoformsmenuextensionmethods/addlabel.md): (2 overloads, static) Append a label to a menu.
- [AddSeparator](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.etoformsmenuextensionmethods/addseparator.md): (static) Append an item to a menu.
- [AddWithLabel](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.etoformsmenuextensionmethods/addwithlabel.md): (static) Add a control with a leading label to a stack layout collection.
- [CellBackColor](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.etoformsmenuextensionmethods/cellbackcolor.md): (static) Try to figure out the background colour of a specific cell.
- [ComputeLineHeight](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.etoformsmenuextensionmethods/computelineheight.md): (static) Compute the line height of a font in logical pixels. This method is better than the `Font.LineHeight` property on `Font` as that one behaves differently on Windows and MacOS.
- [DelayedInvoke](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.etoformsmenuextensionmethods/delayedinvoke.md): (4 overloads, static) Invoke a specific method delegate on the UI thread using a default delay of 20 milliseconds.
- [InvalidateSafe](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.etoformsmenuextensionmethods/invalidatesafe.md): (static) Invalidate a control using thread-safe methods.
- [Italicize](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.etoformsmenuextensionmethods/italicize.md): (static) Ensure a font is italic. This method will not create a new font if not needed.
- [LimitFormToScreen](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.etoformsmenuextensionmethods/limitformtoscreen.md): (static) Limit a form to be entirely within the bounds of whichever screen it is associated with. If the form is already visible, it will be moved. If the form is still being constructed, it will be moved as soon as possible, hopefully before it is drawn wrongly once.
- [Map](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.etoformsmenuextensionmethods/map.md): (static) Transform a mouse event from control coordinates into content coordinates.
- [MapToContent](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.etoformsmenuextensionmethods/maptocontent.md): (static) Transform a mouse event from control coordinates into content coordinates.
- [Resize](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.etoformsmenuextensionmethods/resize.md): (static) Resize a font.
- [Show](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.etoformsmenuextensionmethods/show.md): (2 overloads, static) Show an Open File dialog in an OS-appropriate way. I.e. on OSX no parent window is assigned, allowing the dialog to be dragged, on Windows either the provided parent, or the Grasshopper Editor, or the Rhino window is assigned.
- [ToggleBold](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.etoformsmenuextensionmethods/togglebold.md): (static) Toggle the bold flag of a font.
- [ToggleItalic](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.etoformsmenuextensionmethods/toggleitalic.md): (static) Toggle the italic flag of a font.
