Constructors
Fields
Properties
Node
#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.
public Node Node { get; }
Methods
Get
#Retrieve a bool from the cached settings.
Returns: Boolean value of setting or the default if the setting isn't known.
Get
#Retrieve a colour from the cached settings.
public Color Get()
name,
Name of setting to retrieve.
Color
default
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.
Returns: Id value of setting or the default if the setting isn't known.
Get
#Retrieve a number from the cached settings.
Returns: Numeric value of setting or the default if the setting isn't known.
Get
#Retrieve a number from the cached settings.
Returns: Numeric value of setting or the default if the setting isn't known.
Get
#Retrieve a GUID from the cached settings.
Returns: Id value of setting or the default if the setting isn't known.
Get
#Retrieve an integer from the cached settings.
Returns: Integer value of setting or the default if the setting isn't known.
Get
#Retrieve a colour from the cached settings.
Returns: Id value of setting or the default if the setting isn't known.
Get
#Retrieve a point from the cached settings.
public PointF Get()
name,
Name of setting to retrieve.
PointF
default
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.
public RectangleF Get()
name,
Name of setting to retrieve.
RectangleF
default
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.
public SizeF Get()
name,
Name of setting to retrieve.
SizeF
default
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.
Returns: String value of setting or the default if the setting isn't known.
Get
#Retrieve a time span from the cached settings.
Returns: Id value of setting or the default if the setting isn't known.
InDefaultFolder
#Create or load a settings file by name in the default Grasshopper 2.0 settings folder.
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.
Returns: True if setting was renamed, or if conflicting setting was removed.
Set
#Store a boolean in the cached settings.
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 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.