Function OptionButton.getSelectedId

Returns the ID of the selected item, or 0 if no item is selected.

long getSelectedId() nothrow @nogc const;