DataGridViewHeaderCell.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 如果释放了鼠标左键,则启用视觉样式,该 EnableHeadersVisualStyles 属性为 true,并且 DataGridView 该属性不是 null;否则为 false。
注解
有关启用视觉样式的信息,请参阅该方法 Application.EnableVisualStyles 。
MouseUpUnsharesRow 在前面 OnMouseUp调用 。 如果调用true具有取消共享行OnMouseUp的效果,则必须返回rowIndex它。 否则,它应返回 false 。
有关行共享的详细信息,请参阅 有关缩放 Windows 窗体 DataGridView 控件的最佳做法。