# RuiUpdateUi.UpdateMenuItemEventHandler delegate

Namespace: [Rhino.UI](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.ui.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md)

```cs
public delegate RuiUpdateUi.UpdateMenuItemEventHandler
```

Menu item update delegate

**Signature:**

```cs
void RuiUpdateUi.UpdateMenuItemEventHandler(object sender, RuiUpdateUi cmdui)
```

**Parameters:**

- `sender` ([object](https://learn.microsoft.com/dotnet/api/system.object)): Unused, null
- `cmdui` ([RuiUpdateUi](https://developer.rhino3d.com/api/rhinocommon/type/rhino.ui.ruiupdateui.md)): Used to identify the menu item and modify its state
