Cursor Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the image used for the mouse pointer.
public ref class Cursor sealed : IDisposable
[System.ComponentModel.TypeConverter(typeof(System.Windows.Input.CursorConverter))]
[System.Windows.Localizability(System.Windows.LocalizationCategory.None, Readability=System.Windows.Readability.Unreadable)]
public sealed class Cursor : IDisposable
[<System.ComponentModel.TypeConverter(typeof(System.Windows.Input.CursorConverter))>]
[<System.Windows.Localizability(System.Windows.LocalizationCategory.None, Readability=System.Windows.Readability.Unreadable)>]
type Cursor = class
interface IDisposable
Public NotInheritable Class Cursor
Implements IDisposable
- Inheritance
-
Cursor
- Attributes
- Implements
How to: Change the Cursor Type
The Cursors class contains a set of default cursors.
When running in Partial Trust, only the default cursors defined in the Cursors class are allowed.
<object property="cursorName"/>
cursorName
The name of one of the predefined cursors in the Cursors class.
Cursor(Stream, Boolean) |
Initializes a new instance of the Cursor class. |
Cursor(Stream) |
Initializes a new instance of the Cursor class from the specified Stream. |
Cursor(String, Boolean) |
Initializes a new instance of the Cursor class. |
Cursor(String) |
Initializes a new instance of the Cursor class from the specified .ani or a .cur file. |
Dispose() |
Releases the resources used by the Cursor class. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Finalize() |
Finalizes the object to free resources and perform other cleanup operations. |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
To |
Returns the string representation of the Cursor. |
Product | Versions |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: