Click or drag to resize

ToolbarFileGetSvg Method

Gets the SVG string for an image in this toolbar file.

Namespace:  Rhino.UI
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public string GetSvg(
	Guid imageId,
	bool darkMode
)

Parameters

imageId
Type: SystemGuid
The id of the image. This is the same id returned for a macro's bitmap.
darkMode
Type: SystemBoolean
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.

Return Value

Type: String
The SVG string, or an empty string if the image was not found or has no SVG representation.
See Also