Skip to main content
A newer version of this page is available. .

BaseRepositoryItemCheckEdit.AutoWidth Property

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

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v19.1.dll

Declaration

[DXCategory("Behavior")]
[DefaultValue(false)]
public bool AutoWidth { get; set; }

Property Value

Type Default Description
Boolean **false**

true, if the editor’s width is adjusted to fit the text width; otherwise, false.

Remarks

If the AutoWidth property is set to true, the editor’s width always matches the text width. So, when the text changes the control’s width is recalculated accordingly. In this mode, it’s not possible to set the control’s width directly.

To allow the control to automatically calculate the height based on the control’s text, set the RepositoryItem.AutoHeight property to true.

See Also