語言

DataGridViewLinkCell.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 若放開 SPACE 鍵, TrackVisitedState 屬性為 true,屬性 LinkVisited 為 false,且 CTRL、ALT 和 SHIFT 鍵未被按下;否則, false。

備註

KeyUpUnsharesRow 在 之前稱為 OnKeyUp。 如果呼叫 的true結果是取消了包含該儲存格的該列,則必須返回OnKeyUp。 否則應該會恢復 false 正常。

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

適用於

另請參閱