Cursor.Current 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個代表滑鼠游標的游標物件。
public:
static property System::Windows::Forms::Cursor ^ Current { System::Windows::Forms::Cursor ^ get(); void set(System::Windows::Forms::Cursor ^ value); };
public static System.Windows.Forms.Cursor Current { get; set; }
public static System.Windows.Forms.Cursor? Current { get; set; }
static member Current : System.Windows.Forms.Cursor with get, set
Public Shared Property Current As Cursor
屬性值
A Cursor 代表滑鼠游標。 預設是 null 滑鼠游標未顯示。
備註
設定屬性 Current 會改變目前顯示的游標。 應用程式可能會或不會繼續監聽滑鼠事件。 若要表示應用程式在長時間執行的操作中不應回應滑鼠事件,請使用該 UseWaitCursor 屬性。 不過在大多數情況下,使用背景執行緒來管理長期執行的操作會更好,並且讓使用者介面對使用者保持可存取。 欲了解如何輕鬆實作背景任務,請參見 BackgroundWorker。