Cursors

public static class Cursors
Provides direct access to a cached set of cursors for use within your application
Remarks: This provides a preferred method of getting cursors as opposed to creating new instances directly via Cursor, as it will cache the cursors and only create one shared instance.

Properties

Default

#
public static Cursor Default { get; }
Default cursor, which is usually an arrow but may be different depending on the control

HorizontalSplit

#
public static Cursor HorizontalSplit { get; }
Horizontal sizing cursor

IBeam

#
public static Cursor IBeam { get; }
I-beam cursor for selecting text or placing the text cursor

NotAllowed

#Since v2.11
public static Cursor NotAllowed { get; }
Cursor for not allowed actions

Pointer

#
public static Cursor Pointer { get; }
Pointer cursor, which is usually a hand

SizeBottom

#
public static Cursor SizeBottom { get; }
Bottom side sizing cursor, which on some platforms is the same as SizeTop

SizeBottomLeft

#
public static Cursor SizeBottomLeft { get; }
Bottom-left corner sizing cursor, which on some platforms is the same as SizeTopRight

SizeBottomRight

#
public static Cursor SizeBottomRight { get; }
Bottom-right corner sizing cursor, which on some platforms is the same as SizeTopLeft

SizeLeft

#
public static Cursor SizeLeft { get; }
Left side sizing cursor, which on some platforms is the same as SizeRight

SizeRight

#
public static Cursor SizeRight { get; }
Right side sizing cursor, which on some platforms is the same as SizeLeft

SizeTop

#
public static Cursor SizeTop { get; }
Top side sizing cursor, which on some platforms is the same as SizeBottom

SizeTopLeft

#
public static Cursor SizeTopLeft { get; }
Top-left corner sizing cursor, which on some platforms is the same as SizeBottomRight

SizeTopRight

#
public static Cursor SizeTopRight { get; }
Top-right corner sizing cursor, which on some platforms is the same as SizeBottomLeft

Methods

Cached

#
public static Cursor Cached(CursorType type)
Gets a cached cursor with the specified type
type (CursorType)Type of cursor to get
A cached instance of the specified cursor

ClearCache

#
public static void ClearCache()
Clears the cursor cache
Remarks: This is useful if you are using the Cached(CursorType) method to cache pens and want to clear it to conserve memory or resources.