# PopupMenu

Xojo provides a <span class="title-ref">PopupMenu</span> control for desktop and web projects:

- `DesktopPopupMenu</api/user_interface/desktop/desktoppopupmenu>`
- `WebPopupMenu</api/user_interface/web/webpopupmenu>`
- `MobilePopupMenu</api/user_interface/mobile/mobilepopupmenu>`

## Common members

These events, methods and properties are both common amongst the desktop, mobile and web versions of the control and are the most commonly used. See the individual controls for more members and details.

### Events

| Name             | Description                    |
|------------------|--------------------------------|
| SelectionChanged | The selected item has changed. |

### Methods

| Name          | Description                                                         |
|---------------|---------------------------------------------------------------------|
| AddRow        | Adds a new row to the menu using the value passed.                  |
| RemoveRowAt   | Removes the row at the index passed.                                |
| RemoveAllRows | Removes all rows from the <span class="title-ref">popupmenu</span>. |
| RowTextAt     | Returns the text of the row at the index passed.                    |

### Properties

| Name             | Description                              |
|------------------|------------------------------------------|
| SelectedRowIndex | The index of the currently selected row. |
| SelectedRowText  | The text of the currently selected row.  |

<div class="seealso">

`DesktopPopupMenu</api/user_interface/desktop/desktoppopupmenu>`, `WebPopupMenu</api/user_interface/web/webpopupmenu>` and `MobilePopupMenu</api/user_interface/mobile/mobilepopupmenu>`

</div>
