Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(false)]
[DXCategory("Behavior")]
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