DataGridViewCell.KeyEntersEditMode(KeyEventArgs) DataGridViewCell.KeyEntersEditMode(KeyEventArgs) DataGridViewCell.KeyEntersEditMode(KeyEventArgs) DataGridViewCell.KeyEntersEditMode(KeyEventArgs) Method

定義

判斷是否應該根據指定的按鍵啟動編輯模式。Determines if edit mode should be started based on the given key.

public:
 virtual bool KeyEntersEditMode(System::Windows::Forms::KeyEventArgs ^ e);
public virtual bool KeyEntersEditMode (System.Windows.Forms.KeyEventArgs e);
abstract member KeyEntersEditMode : System.Windows.Forms.KeyEventArgs -> bool
override this.KeyEntersEditMode : System.Windows.Forms.KeyEventArgs -> bool
Public Overridable Function KeyEntersEditMode (e As KeyEventArgs) As Boolean

參數

e
KeyEventArgs KeyEventArgs KeyEventArgs KeyEventArgs

KeyEventArgs,表示已按下的按鍵。A KeyEventArgs that represents the key that was pressed.

傳回

如果應該要啟動編輯模式,則為 true,否則為 falsetrue if edit mode should be started; otherwise, false. 預設為 falseThe default is false.

備註

覆寫這個方法,以建立可編輯的自訂資料格。Override this method to create a custom cell that is editable.

適用於

另請參閱