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

包含该单元格的行的索引。

返回

如果按钮不处于正常状态,为 true;如果按钮处于按下状态,则为 false

注解

MouseLeaveUnsharesRow 在 之前 OnMouseLeave调用 。 如果对 OnMouseLeave 的调用具有取消共享包含单元格的行的效果,则必须返回 true 。 否则,它应返回 false

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

适用于

另请参阅