Control.DefaultCursor 屬性

定義

取得或設定控制項的預設游標。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.

適用於