DataGridViewButtonCell.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 包含事件資料。
- rowIndex
- Int32
該格子父列的索引。
傳回
true若使用者按 SPACE 鍵且未使用修飾鍵;否則,。 false
備註
KeyDownUnsharesRow該方法在方法之前OnKeyDown被呼叫。
true若呼叫 時,若 與 OnKeyDown 相同KeyEventArgs參數 的調用會取消共享該列 rowIndex。 否則應該會恢復 false 正常。
如需有關資料列共用的詳細資訊,請參閱縮放 Windows Forms DataGridView 控制項的最佳做法。