IDataGridViewEditingControl.RepositionEditingControlOnValueChange 属性

定义

获取或设置一个值,该值指示每当值更改时,是否需要重新定位单元格的内容。Gets or sets a value indicating whether the cell contents need to be repositioned whenever the value changes.

public:
 property bool RepositionEditingControlOnValueChange { bool get(); };
public bool RepositionEditingControlOnValueChange { get; }
member this.RepositionEditingControlOnValueChange : bool
Public ReadOnly Property RepositionEditingControlOnValueChange As Boolean

属性值

如果需要重新定位单元格内容,则为 true;否则为 falsetrue if the contents need to be repositioned; otherwise, false.

注解

某些情况下, 当值发生更改时, 需要重新定位单元格内容。Some situations require that cell contents reposition when the value changes. 例如, 当单元格环绕文本并且内容变大时, 可能需要重新定位单元格内容。For example, cell contents may need to reposition when a cell wraps text and the contents become larger.

适用于

另请参阅