DataGridViewButtonCell.MouseUpUnsharesRow 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指示当鼠标按钮释放时,指针位于行中的单元格上时,是否取消共享行。
protected:
override bool MouseUpUnsharesRow(System::Windows::Forms::DataGridViewCellMouseEventArgs ^ e);
protected override bool MouseUpUnsharesRow(System.Windows.Forms.DataGridViewCellMouseEventArgs e);
override this.MouseUpUnsharesRow : System.Windows.Forms.DataGridViewCellMouseEventArgs -> bool
Protected Overrides Function MouseUpUnsharesRow (e As DataGridViewCellMouseEventArgs) As Boolean
参数
包含事件数据的 A DataGridViewCellMouseEventArgs 。
返回
true 如果释放了鼠标左键,则为否则,为 false.
注解
该方法 MouseUpUnsharesRow 在方法之前 OnMouseUp 调用。 如果调用true具有取消共享行的效果,则必须返回OnMouseUp它。 否则,它应返回 false 。
有关行共享的详细信息,请参阅 有关缩放 Windows 窗体 DataGridView 控件的最佳做法。