Function PopupMenu.getItemIndex

Returns the index of the item containing the specified id. Index is automatically assigned to each item by the engine. Index can not be set manually.

long getItemIndex (
  const(long) id
) nothrow @nogc const;