IPresets

References
public interface IPresets : IStorable
Collection of named presets.

Properties

AllPresets

#
Enumerate over all presets.
IEnumerable<IPreset> AllPresets { get; }

Count

#
Gets the number of preset values.
int Count { get; }

Names

#
Enumerate over all names.
IEnumerable<string> Names { get; }

Indexers

this[]

#
Access an indexed preset.
IPreset this[
index
Index of preset.
] { get; }

this[]

#
Access a preset by name.
IPreset this[
name
Name of preset.
] { get; }

Methods

Clear

#
Wipe all defined presets.
void Clear()

FindByValue

#
Attempt to find the preset associated with a value. If the value is of the wrong type or otherwise unknown to this preset collection, null will be returned.
IPreset FindByValue(
value
)

IsAvailable

#
Gets whether a specific name is still available and adheres to the naming scheme.
bool IsAvailable(
name
Name to test.
)
True if name hasn't been defined.

Store

This method is called whenever the instance is required to serialize itself.
void Store(
writer
Writer object to serialize with.
)
inherited fromIStorable

TryCopyFrom

#
Try and copy all presets from another collection.
int TryCopyFrom(
other
)
Number of presets successfully copied.