Options

References
public sealed class Options : IOptions
A mutable list of Option.

Constructors

Options

#
public Options(SettingsFile settings, string settingsPrefix)
Create a new options collection.
settings (SettingsFile)Settings used to store option selectable states. May be null.
settingsPrefix (string)Prefix to use for settings keys. May be null.

Properties

Explicit

IOptions.Count

#
Count

Indexers

Explicit

IOptions.this[]

#
(Option option, bool selected) IOptions.this[int index]
index (int)
this[]

Methods

Add

#
public void Add(Nomen nomen, IIcon icon, bool selectable)
nomen (Nomen)
icon (IIcon)
selectable (bool)

Add

#
public void Add(Option category)
category (Option)

Add

#
public void Add(string name, string info, IIcon icon, bool selectable)
name (string)
info (string)
icon (IIcon)
selectable (bool)

GetEnumerator

#
public IEnumerator<Option> GetEnumerator()
Explicit

IOptions.Deselect

#
bool IOptions.Deselect(string name)
name (string)
Deselect
Explicit

IOptions.IsSelected

#
bool IOptions.IsSelected(string name)
name (string)
IsSelected
Explicit

IOptions.Select

#
bool IOptions.Select(string name)
name (string)
Select
Explicit

IOptions.ToArrays

#
void IOptions.ToArrays(out Option[] options, out bool[] selected)
options (out Option[])
selected (out bool[])
ToArrays
Explicit

IEnumerable.GetEnumerator

#
IEnumerator IEnumerable.GetEnumerator()