GH_CursorServer

References
public sealed class GH_CursorServer
Class used to cache and set cursors.

Properties

Count

#
Gets the number of cached cursors.
public int Count { get; }

Methods

AttachCursor

#
Attach a cursor to a control.
public bool AttachCursor(
Control
control,
Control to assign cursor to.
name
Name of cursor to assign. This is the filename of the original cursor file minus the extension.
)
True if cursor was assigned, or false if no matching cursor could be found.

Cursor

#
Gets a cursor from the cache.
public Cursor Cursor(
name
Name of cursor to retrieve.
)
The cursor that is associated with the given name or null if not cursor could be matched.

IsCursor

#
Test for the existence of a cursor.
public bool IsCursor(
name
Cursor name to test for.
)
True if the cursor is cached.

ReferenceCursors

#
Reference all the cursor files in a given directory.
public int ReferenceCursors(
folder
Directory to parse.
)
The number of cursors referenced. Use the AttachCursor() method to assign a referenced cursor to a control.

ResetCursor

#
Reset the cursor of the given control to default.
public bool ResetCursor(
Control
control
Control to reset.
)
True if control was successfully reset, false if iControl is a null reference.