RepositoryItem.AutoHeight Property

Gets or sets a value specifying whether the editor's height is calculated automatically to fit the editor's content.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[DXCategory("Behavior")]
public virtual bool AutoHeight { get; set; }
<DXCategory("Behavior")>
Public Overridable Property AutoHeight As Boolean

Property Value

Type Default Description
Boolean

true

true if the editor's height is calculated automatically to fit the editor's content; otherwise, false.

Remarks

If the AutoHeight property value is true, editors automatically change their height to the minimum required to fit their content according to the style currently applied. Note: in this case, changing the editor's Height property value will have no effect. If you need to specify the editor's height manually, set the AutoHeight property to false.

Automatic height calculation is not supported by all editors. Thus, the AutoHeight property is overridden by some RepositoryItem descendants to hide it at design time and return false always.

See Also