Back to Devexpress

BaseRepositoryItemCheckEdit.AutoWidth Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-baserepositoryitemcheckedit-c504b974.md

latest1.9 KB
Original Source

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

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(false)]
[DXCategory("Behavior")]
public bool AutoWidth { get; set; }
vb
<DXCategory("Behavior")>
<DefaultValue(False)>
Public Property AutoWidth As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

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

BaseRepositoryItemCheckEdit Class

BaseRepositoryItemCheckEdit Members

DevExpress.XtraEditors.Repository Namespace