Control.DefaultCursor 屬性
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定控制項的預設游標。
protected:
virtual property System::Windows::Forms::Cursor ^ DefaultCursor { System::Windows::Forms::Cursor ^ get(); };
C#
protected virtual System.Windows.Forms.Cursor DefaultCursor { get; }
member this.DefaultCursor : System.Windows.Forms.Cursor
Protected Overridable ReadOnly Property DefaultCursor As Cursor
類型 Cursor 的物件,代表目前的預設資料指標。
覆寫 DefaultCursor 以設定控制項的預設資料指標。 這比在控制項的建構函式中設定資料指標更有效率,並提供特定資料指標相關設計工具函式的自動支援。
產品 | 版本 |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 |
Windows Desktop | 3.0, 3.1, 5, 6, 7 |