# Editor.ContextMenu

Identical to Menu except DeleteOnClose defaults to true.
Can optionally be made searchable by setting [Editor.ContextMenu.Searchable](/api/Editor.ContextMenu/Searchable) to true before opening.

## Examples

```csharp
var menu = new ContextMenu { Searchable = true };
menu.AddOption( "Option 1", action: () => {} );
menu.OpenAtCursor();
```

- Kind: class
- Namespace: `Editor`
- Assembly: `Sandbox.Tools`
- Inherits: [Editor.Menu](/api/Editor.Menu)

## Constructors

- [`ContextMenu`](/api/Editor.ContextMenu/.ctor)

## Properties

- [`Searchable`](/api/Editor.ContextMenu/Searchable): Adds a search bar in the context menu. Useful for big menus
