# DropdownMenu

> Represents a dropdown menu.

## Definition

* **Type:** Class
* **Namespace:** [UnityEngine.UIElements](/engine/6000.0/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public class DropdownMenu
```

## Properties

| Property                                                                                                          | Description                                         |
| ----------------------------------------------------------------------------------------------------------------- | --------------------------------------------------- |
| [allowDuplicateNames](/engine/6000.0/script-reference/unityengine/uielements/dropdownmenu/allowduplicatenames.md) | Determines whether the menu allows duplicate names. |

## Methods

| Method                                                                                                        | Description                                                                                      |
| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
| [AppendAction](/engine/6000.0/script-reference/unityengine/uielements/dropdownmenu/appendaction.md)           | Adds an item that executes an action in the dropdown menu.                                       |
| [AppendSeparator](/engine/6000.0/script-reference/unityengine/uielements/dropdownmenu/appendseparator.md)     | Adds a separator line in the menu.                                                               |
| [ClearItems](/engine/6000.0/script-reference/unityengine/uielements/dropdownmenu/clearitems.md)               | Clears all items from the menu.                                                                  |
| [InsertAction](/engine/6000.0/script-reference/unityengine/uielements/dropdownmenu/insertaction.md)           | Adds an item that executes an action in the dropdown menu.                                       |
| [InsertSeparator](/engine/6000.0/script-reference/unityengine/uielements/dropdownmenu/insertseparator.md)     | Adds a separator line in the menu.                                                               |
| [MenuItems](/engine/6000.0/script-reference/unityengine/uielements/dropdownmenu/menuitems.md)                 | Gets the list of menu items.                                                                     |
| [PrepareForDisplay](/engine/6000.0/script-reference/unityengine/uielements/dropdownmenu/preparefordisplay.md) | Gets the status of all items by calling their status callback and removes the excess separators. |
| [RemoveItemAt](/engine/6000.0/script-reference/unityengine/uielements/dropdownmenu/removeitemat.md)           | Removes the menu item at index.                                                                  |
