Control.DefaultCursor Control.DefaultCursor Control.DefaultCursor Control.DefaultCursor Property

定义

获取或设置控件的默认光标。Gets or sets the default cursor for the control.

protected:
 virtual property System::Windows::Forms::Cursor ^ DefaultCursor { System::Windows::Forms::Cursor ^ get(); };
protected virtual System.Windows.Forms.Cursor DefaultCursor { get; }
member this.DefaultCursor : System.Windows.Forms.Cursor
Protected Overridable ReadOnly Property DefaultCursor As Cursor

属性值

一个 Cursor 类型的对象,表示当前默认光标。An object of type Cursor representing the current default cursor.

注解

DefaultCursor写以配置控件的默认光标。Override DefaultCursor to configure a default cursor for your control. 这比在控件的构造函数中设置光标更高效,并为某些与游标相关的设计器函数提供自动支持。This is more efficient than setting the cursor in the control's constructor, and gives automatic support for certain cursor-related designer functions.

适用于