IOptions

References
public interface IOptions : IEnumerable<Option>
Base interface for Options which doesn't allow the addition of items.

Properties

Count

#
int Count { get; }
Gets the number of defined options.

Indexers

this[]

#
(Option option, bool selected) this[int index] { get; }
Gets the option and selected state at the given index.
index (int)

Methods

Deselect

#
bool Deselect(string name)
Deselect the category with the given name.
name (string)Name of category to deselect.
True if the selection state was changed.

IsSelected

#
bool IsSelected(string name)
Gets whether the category with the given name is selected. If the category isn't defined, false is returned.
name (string)

Select

#
bool Select(string name)
Select the category with the given name.
name (string)Name of category to select.
True if the selection state was changed.

ToArrays

#
void ToArrays(out Option[] options, out bool[] selected)
Gets copies of the option and selection arrays.
options (out Option[])
selected (out bool[])