DataGridViewCell.MouseMoveUnsharesRow(DataGridViewCellMouseEventArgs) 方法

定义

指示当鼠标指针移过行中某个单元格上时,该行是否取消共享状态。

C#
protected virtual bool MouseMoveUnsharesRow(System.Windows.Forms.DataGridViewCellMouseEventArgs e);

参数

返回

如果不共享该行,则为 true;否则为 falseDataGridViewCell 基类总是返回 false

注解

方法 MouseMoveUnsharesRow 在 方法之前 OnMouseMove 调用。 在派生类中,如果 对 OnMouseMove 的调用具有取消共享包含单元格的行的效果,则必须返回 true 。 否则,它应返回 false

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

适用于

产品 版本
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

另请参阅