Click or drag to resize

CursorFromResource Method (String, Assembly)

Loads a cursor from the resource in the specified or caller's assembly

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public static Cursor FromResource(
	string resourceName,
	Assembly assembly = null
)

Parameters

resourceName
Type: SystemString
Name of the resource in the caller's assembly to load. E.g. "MyProject.SomeFolder.YourFile.cur"
assembly (Optional)
Type: System.ReflectionAssembly
Assembly to load the cursor from, or null to use the caller's assembly

Return Value

Type: Cursor
A new instance of a Cursor loaded from the specified resource
See Also