DataGridViewCheckBoxCell.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。

備註

如果儲存格的目前 ButtonState 正常,此方法會導致儲存格的使用者介面 (UI) 更新。

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

適用於

另請參閱