# OpenContextualMenu(Event, SearchItem)

> Invoked when the user opens a contextual menu on the selected search item row.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Search](/engine/6000.7/script-reference/unityeditor/search.md)
* **Assembly:** UnityEditor

```csharp
bool OpenContextualMenu(Event evt, SearchItem item)
```

### Parameters

**** (\[Event]\(/engine/6000.7/script-reference/unityengine/event)): Current UI event.**** (\[SearchItem]\(/engine/6000.7/script-reference/unityeditor/search/searchitem)): Selected item.

### Returns

| Type                                                          | Description                            |
| ------------------------------------------------------------- | -------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if the event was handled. |
