Function OptionButton.addItem

Adds an item, with text label and (optionally) id. If no id is passed, the item index will be used as the item's ID. New items are appended at the end.

void addItem (
  const(String) label,
  const(long) id = -1L
) nothrow @nogc;