語言

DataGridViewCheckBoxCell.KeyUpUnsharesRow(KeyEventArgs, Int32) 方法

定義

表示當該格在格子處於焦點狀態時放開金鑰時,該列是否為未共享。

protected:
 override bool KeyUpUnsharesRow(System::Windows::Forms::KeyEventArgs ^ e, int rowIndex);
protected override bool KeyUpUnsharesRow(System.Windows.Forms.KeyEventArgs e, int rowIndex);
override this.KeyUpUnsharesRow : System.Windows.Forms.KeyEventArgs * int -> bool
Protected Overrides Function KeyUpUnsharesRow (e As KeyEventArgs, rowIndex As Integer) As Boolean

參數

e
KeyEventArgs

KeyEventArgs A 包含關於按鍵資料的 A。

rowIndex
Int32

包含該格子的列索引。

傳回

true若放開空格鍵;否則,。 false

備註

KeyUpUnsharesRow 在 之前稱為 OnKeyUp。 如果呼叫 與true相同OnKeyUp參數導致包含該儲存格的列取消共享,則必須回傳KeyEventArgs。 否則應該會恢復 false 正常。

如需有關資料列共用的詳細資訊,請參閱縮放 Windows Forms DataGridView 控制項的最佳做法。

適用於

另請參閱