Control.DefaultCursor 屬性

定義

取得或設定控制項的預設游標。

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

類型 Cursor 的物件,代表目前的預設資料指標。

備註

覆寫 DefaultCursor 以設定控制項的預設資料指標。 這比在控制項的建構函式中設定資料指標更有效率,並提供特定資料指標相關設計工具函式的自動支援。

適用於