DataGridViewCell.KeyDownUnsharesRow(KeyEventArgs, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指示如果用户在焦点位于单元格上时按下某个键,则是否取消共享父行。
protected:
virtual bool KeyDownUnsharesRow(System::Windows::Forms::KeyEventArgs ^ e, int rowIndex);
protected virtual bool KeyDownUnsharesRow(System.Windows.Forms.KeyEventArgs e, int rowIndex);
abstract member KeyDownUnsharesRow : System.Windows.Forms.KeyEventArgs * int -> bool
override this.KeyDownUnsharesRow : System.Windows.Forms.KeyEventArgs * int -> bool
Protected Overridable Function KeyDownUnsharesRow (e As KeyEventArgs, rowIndex As Integer) As Boolean
参数
包含事件数据的 A KeyEventArgs 。
- rowIndex
- Int32
单元格的父行的索引。
返回
false。
注解
该方法 KeyDownUnsharesRow 在方法之前 OnKeyDown 调用。 如果对true具有相同OnKeyDown参数的调用具有取消共享包含单元格的行的效果,则它必须返回KeyEventArgs。 否则,它应返回 false。
有关行共享的详细信息,请参阅 有关缩放 Windows 窗体 DataGridView 控件的最佳做法。