Skip to main content

LayoutRepositoryItem.EditorPreferredWidth Property

Specifies the desired width of the layout item’s region displaying the editor (repository item).

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[XtraSerializableProperty]
[DXCategory("Appearance")]
public virtual int EditorPreferredWidth { get; set; }

Property Value

Type Description
Int32

An integer value that specifies the width of the layout item’s edit portion.

Remarks

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