ToolbarFile

ReferencesSince v5.0
public sealed class ToolbarFile
Represents a Rhino toolbar, or .RUI, file.

Properties

GroupCount

#Since v5.0
Get the number of toolbar groups in the toolbar file.
public int GroupCount { get; }

Id

#Since v5.0
Gets the id of the toolbar file.
public Guid Id { get; }

Name

#Since v5.0
Gets the name, or alias, of the toolbar file.
public string Name { get; }

Path

#Since v5.0
Gets the full path to the toolbar file.
public string Path { get; }

ToolbarCount

#Since v5.0
Get the number of toolbars in the toolbar file.
public int ToolbarCount { get; }

Methods

Close

#Since v5.0
Closes the toolbar file.
public bool Close(
prompt
Set true if you want to be prompted to cllose the file.
)
True if successful, false otherwie.

GetGroup

#Since v5.0
Gets a toolbar group.
public ToolbarGroup GetGroup(
index
The index of the toolbar group.
)
The toolbar group if successful, null otherwise.

GetGroup

#Since v5.0
Gets a toolbar group.
public ToolbarGroup GetGroup(
name
The name of the toolbar group.
)
The toolbar group if successful, null otherwise.

GetSvg

#Since v9.0
Gets the SVG string for an image in this toolbar file.
public string GetSvg(
imageId,
The id of the image. This is the same id returned for a macro's bitmap.
darkMode
Set to true to get the dark-mode SVG. When the image only has a light SVG, its custom dark-mode attributes are applied to produce the result.
)
The SVG string, or an empty string if the image was not found or has no SVG representation.

GetToolbar

#
Gets a toolbar.
public Toolbar GetToolbar(
index
The index of the toolbar.
)
The toolbar if successful, null otherwise.

Save

#Since v5.0
Saves the toolbar file.
public bool Save()

SaveAs

#Since v5.0
Saves the toolbar file to a different path.
public bool SaveAs(
path
)