This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
Cursor Methods
The methods of the Cursor class are listed below. For a complete list of Cursor class members, see the Cursor Members topic.
Public:
Clone |
Clones the cursor object, creating a duplicate image. |
CopyHandle |
Duplicates this cursor's Win32 handle. You are responsible for freeing the returned handle when you are done with it. |
Dispose |
Cleans up the resources allocated by this object. Once called, the cursor object is no longer useful. |
Draw |
Draws this image to a graphics object. The drawing command originates on the graphics object, but a graphics object generally has no idea how to render a given image. So, it passes the call to the actual image. This version crops the image to the given dimensions and allows the user to specify a rectangle within the image to draw. |
DrawStretched |
Draws this image to a graphics object. The drawing command originates on the graphics object, but a graphics object generally has no idea how to render a given image. So, it passes the call to the actual image. This version stretches the image to the given dimensions and allows the user to specify a rectangle within the image to draw. |
Equals (inherited from Object) |
Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality). |
GetHashCode (inherited from Object) |
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetType (inherited from Object) |
Gets the Type of the Object. |
Hide |
Hides the cursor. For every call to Cursor.Hide() there must be a balancing call to Cursor.Show(). |
Show |
Displays the cursor. For every call to Cursor.Show() there must have been a previous call to Cursor.Hide(). |
ToString |
Retrieves a human readable string representing the cursor. |
Protected:
DestroyHandle |
Called when this object is going to destroy it's Win32 handle. You may override this if there is something special you need to do to destroy the handle. This will be called even if the handle is not owned by this object, which is handy if you want to create a derived class that has it's own create/destroy semantics. The default implementation will call the appropriate Win32 call to destroy the handle if this object currently owns the handle. It will do nothing if the object does not currently own the handle. |
Finalize |
Cleans up Windows resources for this object. |
MemberwiseClone (inherited from Object) |
Creates a shallow copy of the current Object. |
See Also
Cursor Class | System.Drawing Namespace