DataGridViewCell.MouseDoubleClickUnsharesRow 方法

定义

指示当用户双击行中的单元格时,是否将对该行取消共享。

protected:
 virtual bool MouseDoubleClickUnsharesRow(System::Windows::Forms::DataGridViewCellMouseEventArgs ^ e);
protected virtual bool MouseDoubleClickUnsharesRow (System.Windows.Forms.DataGridViewCellMouseEventArgs e);
abstract member MouseDoubleClickUnsharesRow : System.Windows.Forms.DataGridViewCellMouseEventArgs -> bool
override this.MouseDoubleClickUnsharesRow : System.Windows.Forms.DataGridViewCellMouseEventArgs -> bool
Protected Overridable Function MouseDoubleClickUnsharesRow (e As DataGridViewCellMouseEventArgs) As Boolean

参数

返回

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

注解

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

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

适用于

另请参阅