Represents a Rhino toolbar, or .RUI, file.
Properties
Get the number of toolbar groups in the toolbar file.
Methods
Closes the toolbar file.
Parameters:
| prompt (bool) | Set true if you want to be prompted to cllose the file. |
Returns: True if successful, false otherwie.
Gets a toolbar group.
Parameters:
| index (int) | The index of the toolbar group. |
Returns: The toolbar group if successful, null otherwise.
Gets a toolbar group.
Parameters:
| name (string) | The name of the toolbar group. |
Returns: The toolbar group if successful, null otherwise.
Gets the SVG string for an image in this toolbar file.
Parameters:
| imageId (Guid) | The id of the image. This is the same id returned for a macro's bitmap. |
| darkMode (bool) | 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. |
Returns: The SVG string, or an empty string if the image was not found or has no SVG representation.