Cursors 类

定义

定义一组默认光标。Defines a set of default cursors.

public ref class Cursors abstract sealed
public static class Cursors
type Cursors = class
Public Class Cursors
继承
Cursors

注解

此静态类定义了应用程序通用的一组默认游标。This static class defines a set of default cursors common to applications.

定义游标的各种静态属性不能直接在中XAMLXAML使用, 而是通过两种可能的机制间接使用:The various static properties defining cursors are not directly usable in XAMLXAML, but are indirectly used through two possible mechanisms:

  • XAMLXAML CursorType Cursors类对采用类型Cursor的任何属性执行类型转换, 以使指定为特性值的枚举的值将计算为静态属性之一。 CursorThe Cursor class performs type conversion on any XAMLXAML attribute that takes type Cursor, such that a value of the CursorType enumeration specified as the attribute value will evaluate to one of the static Cursors properties.

  • 静态属性值可通过X:Static 标记扩展来使用。A static property value can be used through the x:Static Markup Extension.

属性

AppStarting

获取在应用程序启动时显示的 CursorGets the Cursor that appears when an application is starting.

Arrow

获取箭头 CursorGets the Arrow Cursor.

ArrowCD

用光盘 Cursor 获取箭头。Gets the arrow with a compact disk Cursor.

Cross

获取十字线 CursorGets the crosshair Cursor.

Hand

获取手形 CursorGets a hand Cursor.

Help

获取帮助 Cursor,它是箭头和问号的组合。Gets a help Cursor which is a combination of an arrow and a question mark.

IBeam

获取 I 型 Cursor,它用于显示单击鼠标时文本光标的出现位置。Gets an I-beam Cursor, which is used to show where the text cursor appears when the mouse is clicked.

No

获取 Cursor,它表明不能在特定区域执行给定操作。Gets a Cursor with which indicates that a particular region is invalid for a given operation.

None

获取不可见的特殊光标。Gets a special cursor that is invisible.

Pen

获取笔形 CursorGets a pen Cursor.

ScrollAll

获取全方位滚动 CursorGets the scroll all Cursor.

ScrollE

获取向右滚动 CursorGets the scroll east Cursor.

ScrollN

获取向上滚动 CursorGets the scroll north Cursor.

ScrollNE

获取向右上方滚动的光标。Gets the scroll northeast cursor.

ScrollNS

获取上/下滚动光标。Gets the scroll north/south cursor.

ScrollNW

获取向左上方滚动的光标。Gets a scroll northwest cursor.

ScrollS

获取向下滚动 CursorGets the scroll south Cursor.

ScrollSE

获取向下/向右滚动 CursorGets a south/east scrolling Cursor.

ScrollSW

获取向左下方滚动 CursorGets the scroll southwest Cursor.

ScrollW

获取向左滚动 CursorGets the scroll west Cursor.

ScrollWE

获取向左/向右滚动 CursorGets a west/east scrolling Cursor.

SizeAll

获取四向大小调整 Cursor,它由相联接的、分别指向上下左右的四个箭头组成。Gets a four-headed sizing Cursor, which consists of four joined arrows that point north, south, east, and west.

SizeNESW

获取右上/左下双向大小调整 CursorGets a two-headed northeast/southwest sizing Cursor.

SizeNS

获取上/下双向大小调整 CursorGets a two-headed north/south sizing Cursor.

SizeNWSE

获取左上/右下双向大小调整 CursorGets a two-headed northwest/southeast sizing Cursor.

SizeWE

获取左/右双向大小调整 CursorGets a two-headed west/east sizing Cursor.

UpArrow

获取向上箭头 Cursor,它通常用来标识插入点。Gets an up arrow Cursor, which is typically used to identify an insertion point.

Wait

指定等待(或沙漏)CursorSpecifies a wait (or hourglass) Cursor.

适用于

另请参阅