TextBoxBase.DefaultCursor 屬性

定義

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

C#
protected override System.Windows.Forms.Cursor DefaultCursor { get; }

屬性值

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