Cursor Class
TOC
Collapse the table of content
Expand the table of content

Cursor Class

 

Represents the image used for the mouse pointer.

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

System.Object
  System.Windows.Input.Cursor

[LocalizabilityAttribute(LocalizationCategory.None, Readability = Readability.Unreadable)]
[TypeConverterAttribute(typeof(CursorConverter))]
public sealed class Cursor : IDisposable

NameDescription
System_CAPS_pubmethodCursor(Stream)

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

System_CAPS_pubmethodCursor(Stream, Boolean)

Initializes a new instance of the Cursor class.

System_CAPS_pubmethodCursor(String)

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

System_CAPS_pubmethodCursor(String, Boolean)

Initializes a new instance of the Cursor class.

NameDescription
System_CAPS_pubmethodDispose()

Releases the resources used by the Cursor class.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Finalizes the object to free resources and perform other cleanup operations.(Overrides Object.Finalize().)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns the string representation of the Cursor.(Overrides Object.ToString().)

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.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft