DataGridViewButtonCell.OnMouseLeave(Int32) 方法

定義

當滑鼠指標移出儲存格時呼叫。

protected:
 override void OnMouseLeave(int rowIndex);
protected override void OnMouseLeave (int rowIndex);
override this.OnMouseLeave : int -> unit
Protected Overrides Sub OnMouseLeave (rowIndex As Integer)

參數

rowIndex
Int32

目前儲存格的資料列索引,如果儲存格不屬於資料列,則為 -1。

備註

如果儲存格的按鈕不是正常狀態,這個方法會導致儲存格的使用者介面 (UI) 更新。

這個方法類似于 Control.OnMouseLeave 方法。 它會在引發事件的相同情況下 MouseLeave 呼叫,但實際上不會引發事件。

給繼承者的注意事項

當在衍生類別中覆寫 OnMouseLeave(Int32) 時,請確定呼叫基底類別的 OnMouseLeave(Int32) 方法,使已註冊的委派能接收到事件。

適用於

另請參閱