IconFromResource Method (String, Type) |
Loads an icon from a resource in the same assembly as the specified type
Namespace:
Eto.Drawing
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public static Icon FromResource(
string resourceName,
Type type
)
Public Shared Function FromResource (
resourceName As String,
type As Type
) As Icon
static member FromResource :
resourceName : string *
type : Type -> Icon
Parameters
- resourceName
- Type: SystemString
Full name of the resource in the type's assembly E.g. "MyProject.SomeFolder.YourFile.extension" - type
- Type: SystemType
Type of the assembly to get the resource.
Return Value
Type:
IconThe icon instance.
See Also