windowsforms-devexpress-dot-xtralayout-dot-layoutrepositoryitem-eb8eb455.md
Specifies the desired width of the layout item’s region displaying the editor (repository item).
Namespace : DevExpress.XtraLayout
Assembly : DevExpress.XtraLayout.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DXCategory("Appearance")]
[XtraSerializableProperty]
public virtual int EditorPreferredWidth { get; set; }
<XtraSerializableProperty>
<DXCategory("Appearance")>
Public Overridable Property EditorPreferredWidth As Integer
| Type | Description |
|---|---|
| Int32 |
An integer value that specifies the width of the layout item’s edit portion.
|
A layout item consists of padding regions, and regions displaying a text label and an editor (repository item). The EditorPreferredWidth property allows you to specify the desired width of a layout item’s editor.
Assigning this property, a value recalculates the default minimum size constraints specified by the LayoutControlItem.MinSize property. So, the editor (repository item) will have the minimum size specified by the EditorPreferredWidth property.
For multi-line MemoEdit and PictureEdit editors (repository items), the EditorPreferredWidth property also affects the editor’s height. For these editors, the height is calculated according to the editor’s width.
See Also