IDataGridViewEditingControl.PrepareEditingControlForEdit(Boolean) 方法

定义

准备当前选中的单元格以进行编辑。Prepares the currently selected cell for editing.

public:
 void PrepareEditingControlForEdit(bool selectAll);
public void PrepareEditingControlForEdit (bool selectAll);
abstract member PrepareEditingControlForEdit : bool -> unit
Public Sub PrepareEditingControlForEdit (selectAll As Boolean)

参数

selectAll
Boolean

true,则选择单元格的全部内容;否则为 falsetrue to select all of the cell's content; otherwise, false.

注解

此方法的目的是准备控件及其内容以进行编辑。The purpose of this method is to prepare the control and its contents for editing. 例如, 您可能希望将插入点放在内容的末尾, 或者更改内容的对齐方式。For example, you might want to put the insertion point at the end of the contents, or change how the contents are aligned.

适用于

另请参阅