Constructors
Fields
Properties
Node
#public Node Node { get; }
Gets the underlying node which stores the values. Careful when using this object directly, you may for example not overwrite existing values, you must delete them first. Also, changes made directly to the node will not cause a settings file update.
Methods
Get
#Retrieve a bool from the cached settings.
Get
#Retrieve a colour from the cached settings.
Parameters:
| name (string) | Name of setting to retrieve. |
| default (Color) | Default value in case name isn't available, or doesn't represent a colour. |
Returns: Id value of setting or the default if the setting isn't known.
Get
#Retrieve a date from the cached settings.
Get
#Retrieve a number from the cached settings.
Get
#Retrieve a number from the cached settings.
Get
#Retrieve a GUID from the cached settings.
Get
#Retrieve an integer from the cached settings.
Get
#Retrieve a colour from the cached settings.
Get
#Retrieve a point from the cached settings.
Parameters:
| name (string) | Name of setting to retrieve. |
| default (PointF) | Default value in case name isn't available, or doesn't represent a point. |
Returns: Point value of setting or the default if the setting isn't known.
Get
#Retrieve a rectangle from the cached settings.
Parameters:
| name (string) | Name of setting to retrieve. |
| default (RectangleF) | Default value in case name isn't available, or doesn't represent a rectangle. |
Returns: Rectangle value of setting or the default if the setting isn't known.
Get
#Retrieve a size from the cached settings.
Parameters:
| name (string) | Name of setting to retrieve. |
| default (SizeF) | Default value in case name isn't available, or doesn't represent a size. |
Returns: Point value of setting or the default if the setting isn't known.
Get
#Retrieve a string from the cached settings.
Get
#Retrieve a time span from the cached settings.
InDefaultFolder
#Create or load a settings file by name in the default Grasshopper 2.0 settings folder.
Parameters:
| name (string) | Name of settings to load. |
Returns: Settings file.
Rename
#Attempt to rename a setting. If another setting with the newName already exists, it will be removed, even if the oldName does not point to an existing setting.
Set
#Store a boolean in the cached settings.
Set
#Store a color in the cached settings.
Parameters:
| name (string) | Name of setting to store. |
| value (Color) | Value to store. |
Set
#Store a date in the cached settings.
Set
#Store a number in the cached settings.
Set
#Store a number in the cached settings.
Set
#Store a guid in the cached settings.
Set
#Store an integer in the cached settings.
Set
#Store an IStorable object in the cached settings.
Set
#Store a point in the cached settings.
Parameters:
| name (string) | Name of setting to store. |
| value (PointF) | Value to store. |
Set
#Store a rectangle in the cached settings.
Parameters:
| name (string) | Name of setting to store. |
| value (RectangleF) | Value to store. |
Set
#Store a size in the cached settings.
Parameters:
| name (string) | Name of setting to store. |
| value (SizeF) | Value to store. |
Set
#Store a string in the cached settings.
Set
#Store a time span in the cached settings.
TryLoadSettingsFromFile
#Load the settings form the file. This happens automatically on construction, so you only need to call this method if you have reason to believe the settings file was modified by a process other than this SettingsFile.