Cursor Cursor Cursor Cursor Class

Definition

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
type Cursor = class
    interface IDisposable
Public NotInheritable Class Cursor
Implements IDisposable
Inheritance
CursorCursorCursorCursor
Attributes
Implements

Examples

How to: Change the Cursor Type

Remarks

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.

XAML Attribute Usage

<object property="cursorName"/>  

XAML Values

cursorName
The name of one of the predefined cursors in the Cursors class.

Constructors

Cursor(Stream) Cursor(Stream) Cursor(Stream) Cursor(Stream)

Initializes a new instance of the Cursor class from the specified Stream.

Cursor(Stream, Boolean) Cursor(Stream, Boolean) Cursor(Stream, Boolean) Cursor(Stream, Boolean)

Initializes a new instance of the Cursor class.

Cursor(String) Cursor(String) Cursor(String) Cursor(String)

Initializes a new instance of the Cursor class from the specified .ani or a .cur file.

Cursor(String, Boolean) Cursor(String, Boolean) Cursor(String, Boolean) Cursor(String, Boolean)

Initializes a new instance of the Cursor class.

Methods

Dispose() Dispose() Dispose() Dispose()

Releases the resources used by the Cursor class.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
Finalize() Finalize() Finalize() Finalize()

Finalizes the object to free resources and perform other cleanup operations.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns the string representation of the Cursor.

Applies to

See also