語言

DataGridViewButtonCell.KeyDownUnsharesRow(KeyEventArgs, Int32) 方法

定義

表示若在焦點放在該列格時按下鍵,該列是否為未共享。

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

參數

e
KeyEventArgs

KeyEventArgs A 包含事件資料。

rowIndex
Int32

該格子父列的索引。

傳回

true若使用者按 SPACE 鍵且未使用修飾鍵;否則,。 false

備註

KeyDownUnsharesRow該方法在方法之前OnKeyDown被呼叫。 true若呼叫 時,若 與 OnKeyDown 相同KeyEventArgs參數 的調用會取消共享該列 rowIndex。 否則應該會恢復 false 正常。

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

適用於

另請參閱