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

LayoutRepositoryItem.EditorPreferredWidth Property

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

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v19.1.dll

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. Note that the EditorPreferredWidth property is ignored when the LayoutControlItem.SizeConstraintsType property is set to SizeConstraintsType.Custom.

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