Constructor Cursor
Cursor()
Initializes a new instance of the Cursor class.
public Cursor()
Cursor(ICursorHandler)
Initializes a new instance of the Cursor class.
public Cursor(ICursorHandler handler)
Parameters
handler
ICursorHandler
Cursor(CursorType)
Initializes a new instance of the Cursor class using a cursor identifier.
public Cursor(CursorType cursor)
Parameters
cursor
CursorTypeBuilt in cursor type.
Cursor(string, BitmapType, int, int)
Initializes a new instance of the Cursor class by passing a filename.
public Cursor(string cursorName, BitmapType type = BitmapType.CursorDefaultType, int hotSpotX = 0, int hotSpotY = 0)
Parameters
cursorName
stringCursor filename.
type
BitmapTypeType of the bitmap.
hotSpotX
intHot spot X.
hotSpotY
intHot spot Y.
Cursor(Stream, BitmapType)
Initializes a new instance of the Cursor class from a stream.
public Cursor(Stream stream, BitmapType bitmapType = BitmapType.Any)
Parameters
stream
StreamStream with cursor.
bitmapType
BitmapTypeType of the cursor.
Cursor(Image, int, int)
Initializes a new instance of the Cursor class from an image.
public Cursor(Image image, int hotSpotX = 0, int hotSpotY = 0)
Parameters
Cursor(GenericImage, int, int)
Initializes a new instance of the Cursor class from an image.
public Cursor(GenericImage image, int hotSpotX = 0, int hotSpotY = 0)
Parameters
image
GenericImageImage with cursor.
hotSpotX
intHot spot X.
hotSpotY
intHot spot Y.