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) 委托接收事件。

适用于

另请参阅