DrawingUtilities.IconFromResource Method (String, Assembly)
Click or drag to resize

DrawingUtilitiesIconFromResource Method (String, Assembly)

Load a Icon from an embedded resource.

Namespace:  Rhino.UI
Assembly:  RhinoCommon (in RhinoCommon.dll)
public static Icon IconFromResource(
	string resourceName,
	Assembly assembly = null


Type: SystemString
The case-sensitive name of the icon manifest resource being requested.
assembly (Optional)
Type: System.ReflectionAssembly
The assembly containing the manifest resource, will use the calling assembly if null.

Return Value

Type: Icon
The Icon resource if found and loaded otherwise null.
Version Information

Rhino for Windows

Supported in: 6.7
See Also