IconFromResource Method (String, Assembly) |
Loads an icon from an embedded resource of the specified assembly
Namespace:
Eto.Drawing
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public static Icon FromResource(
string resourceName,
Assembly assembly = null
)
Public Shared Function FromResource (
resourceName As String,
Optional assembly As Assembly = Nothing
) As Icon
static member FromResource :
resourceName : string *
?assembly : Assembly
(* Defaults:
let _assembly = defaultArg assembly null
*)
-> Icon
Parameters
- resourceName
- Type: SystemString
Fully qualified name of the resource to load. E.g. "MyProject.SomeFolder.YourFile.extension" - assembly (Optional)
- Type: System.ReflectionAssembly
Assembly to load the resource from
Return Value
Type:
IconA new instance of an Icon loaded with the contents of the specified resource
See Also