DataGridViewCheckBoxCell.KeyDownUnsharesRow(KeyEventArgs, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示當該格處於焦點狀態時,按下按鍵時包含該格子的列是否為未共享。
protected:
override bool KeyDownUnsharesRow(System::Windows::Forms::KeyEventArgs ^ e, int rowIndex);
protected override bool KeyDownUnsharesRow(System.Windows.Forms.KeyEventArgs e, int rowIndex);
override this.KeyDownUnsharesRow : System.Windows.Forms.KeyEventArgs * int -> bool
Protected Overrides Function KeyDownUnsharesRow (e As KeyEventArgs, rowIndex As Integer) As Boolean
參數
KeyEventArgs A 包含關於按鍵資料的 A。
- rowIndex
- Int32
包含該格子的列索引。
傳回
true如果按下 SPACE 鍵且 CTRL、ALT 和 SHIFT 鍵都未被按下;否則,。 false
備註
KeyDownUnsharesRow 在 之前稱為 OnKeyDown。 如果呼叫 與true相同OnKeyDown參數導致包含該儲存格的列取消共享,則必須回傳KeyEventArgs。 否則應該會恢復 false 正常。
如需有關資料列共用的詳細資訊,請參閱縮放 Windows Forms DataGridView 控制項的最佳做法。