Settings Class

Constructors

  Name Description
Settings Static Class

Properties

  Name Description
bool AutoSave Gets or sets a value representing whether changes are automatically saved to the settings file.

Methods

  Name Description
DeleteBool(string) Delete's a boolean setting with the specified name.
DeleteByte(string) Delete's a byte setting with the specified name.
DeleteChar(string) Delete's a byte setting with the specified name.
DeleteDecimal(string) Delete's a byte setting with the specified name.
DeleteDouble(string) Delete's a double setting with the specified name.
DeleteFloat(string) Delete's a float setting with the specified name.
DeleteInt(string) Delete's an integer setting with the specified name.
DeleteLong(string) Delete's a long integer setting with the specified name.
DeleteString(string) Delete's a string setting with the specified name.
DeleteSettingsFile() Deletes the gadget's whole settings file.
ReadBoolean(string, bool) Returns a value representing the setting with the passed key's value or the passed default value if the key doesn't exist.
ReadByte(string, byte) Returns a value representing the setting with the passed key's value or the passed default value if the key doesn't exist.
ReadChar(string, char) Returns a value representing the setting with the passed key's value or the passed default value if the key doesn't exist.
ReadDecimal(string, decimal) Returns a value representing the setting with the passed key's value or the passed default value if the key doesn't exist.
ReadDouble(string, double) Returns a value representing the setting with the passed key's value or the passed default value if the key doesn't exist.
ReadFloat(string, float) Returns a value representing the setting with the passed key's value or the passed default value if the key doesn't exist.
ReadInt(string, int) Returns a value representing the setting with the passed key's value or the passed default value if the key doesn't exist.
ReadLong(string, long) Returns a value representing the setting with the passed key's value or the passed default value if the key doesn't exist.
ReadString(string, long) Returns a value representing the setting with the passed key's value or the passed default value if the key doesn't exist.
WriteBoolean(string, bool) Writes a value representing the setting with the passed key value to the settings file
WriteByte(string, byte) Writes a value representing the setting with the passed key value to the settings file
WriteChar(string, char) Writes a value representing the setting with the passed key value to the settings file
WriteDecimal(string, decimal) Writes a value representing the setting with the passed key value to the settings file
WriteDouble(string, double) Writes a value representing the setting with the passed key value to the settings file
WriteFloat(string, float) Writes a value representing the setting with the passed key value to the settings file
WriteInt(string, int) Writes a value representing the setting with the passed key value to the settings file
WriteLong(string, long) Writes a value representing the setting with the passed key value to the settings file
WriteString(string, string) Writes a value representing the setting with the passed key value to the settings file
Reload() Reloads the settings file.
Save() Saves the changes to the settings file.