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.

适用于

另请参阅