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.

适用于