[]
Serializable, Comparable<SelectionMode>, ConstableUse this enum with a list box control to determine whether users can select one item, multiple items without modifier keys, or multiple items by using the Ctrl key. The available modes correspond to the list box selection modes used by Excel VBA.
IListBox listBox = worksheet.getControls().addListBox(24.1, 273.1, 170, 78.69);
listBox.getItems().add(new ListBoxItem("Item 1"));
listBox.getItems().add(new ListBoxItem("Item 2"));
listBox.getItems().add(new ListBoxItem("Item 3"));
listBox.setSelectionMode(SelectionMode.Extended);
Enum.EnumDesc<E extends Enum<E>>static SelectionModeforValue(int value) intgetValue()static SelectionModestatic SelectionMode[]values()name - the name of the enum constant to be returned.IllegalArgumentException - if this enum class has no constant with the specified nameNullPointerException - if the argument is null