DataGridViewCheckBoxCell.OnMouseLeave(Int32) 方法

定義

當滑鼠指標從儲存格移動時即會呼叫。Called when the mouse pointer moves from a cell.

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。The row index of the current cell or -1 if the cell is not owned by a row.

備註

如果儲存格的目前 ButtonState 是正常的,這個方法會讓儲存格的使用者介面 (UI) 更新。If the cell's current ButtonState is normal, this method causes the cell's user interface (UI) to be updated.

這個方法類似于 OnMouseLeave 方法。This method is similar to the OnMouseLeave method. 它是在引發事件的相同情況下呼叫的 MouseLeave ,但實際上並不會引發事件。It is called in the same circumstances in which a MouseLeave event is raised, but it does not actually raise the event.

適用於

另請參閱