Choice.add

int add(string text)

Adds an item to the dropdown menu.

Parameters

textThe item text

Returns

Index of the added item