语言

DataGridViewHeaderCell.MouseUpUnsharesRow 方法

定义

指示当鼠标按钮释放时,指针位于行中的单元格上时,是否取消共享行。

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

参数

e
DataGridViewCellMouseEventArgs

包含有关鼠标位置的信息的 A DataGridViewCellMouseEventArgs 。

返回

true 如果释放了鼠标左键,则启用视觉样式,该 EnableHeadersVisualStyles 属性为 true,并且 DataGridView 该属性不是 null;否则为 false。

注解

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

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

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

适用于

另请参阅