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

鼠标指针所离开的行的索引。

返回

trueButtonState如果属性值不Normal为 ,则启用视觉样式,并且 EnableHeadersVisualStyles 属性为 true,并且 DataGridView 属性不是 null;否则为 false

注解

有关启用视觉样式的信息,请参阅 Application.EnableVisualStyles 方法。

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

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

适用于

另请参阅