语言

DataGridViewButtonCell.MouseLeaveUnsharesRow(Int32) 方法

定义

指示当鼠标指针离开行时是否取消共享行。

protected:
 override bool MouseLeaveUnsharesRow(int rowIndex);
protected override bool MouseLeaveUnsharesRow(int rowIndex);
override this.MouseLeaveUnsharesRow : int -> bool
Protected Overrides Function MouseLeaveUnsharesRow (rowIndex As Integer) As Boolean

参数

rowIndex
Int32

当前单元格的行索引,或 -1 该单元格不由行拥有。

返回

true 如果单元格显示的按钮处于按下状态,则为否则,为 false.

注解

该方法 MouseLeaveUnsharesRow 在方法之前 OnMouseLeave 调用。 MouseLeaveUnsharesRow如果调用true具有取消共享所OnMouseLeave指定的行的效果,则必须返回 rowIndex 。 否则,它应返回 false 。

有关行共享的详细信息,请参阅 有关缩放 Windows 窗体 DataGridView 控件的最佳做法。

适用于

另请参阅