DataGridViewLinkCell.MouseMoveUnsharesRow 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指示当鼠标指针在单元格上移动时,是否将取消共享包含单元格的行。
protected:
override bool MouseMoveUnsharesRow(System::Windows::Forms::DataGridViewCellMouseEventArgs ^ e);
protected override bool MouseMoveUnsharesRow(System.Windows.Forms.DataGridViewCellMouseEventArgs e);
override this.MouseMoveUnsharesRow : System.Windows.Forms.DataGridViewCellMouseEventArgs -> bool
Protected Overrides Function MouseMoveUnsharesRow (e As DataGridViewCellMouseEventArgs) As Boolean
参数
包含有关鼠标单击的数据的 A DataGridViewCellMouseEventArgs 。
返回
true 如果鼠标指针位于链接上并且链接尚未更改颜色以反映悬停状态,否则,为 false.
注解
该方法 MouseMoveUnsharesRow 在方法之前 OnMouseMove 调用。 如果调用true具有取消共享包含单元格的行的效果,则必须返回OnMouseMove它。 否则,它应返回 false 。
有关行共享的详细信息,请参阅 有关缩放 Windows 窗体 DataGridView 控件的最佳做法。