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

LayoutControlItem.MinSize Property

Gets or sets the item’s minimum size.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v19.1.dll

Declaration

[XtraSerializableProperty]
public override Size MinSize { get; set; }

Property Value

Type Description
Size

A Size structure that defines the item’s minimum width and height.

Remarks

A layout item’s size can vary between the sizes determined by the MinSize and LayoutControlItem.MaxSize properties. If the Width or Height field of the MaxSize property is set to 0, the corresponding width/height is not limited.

By default, the LayoutControlItem.SizeConstraintsType property is set to Default. In this mode, the MinSize and LayoutControlItem.MaxSize properties are read-only and they specify predefined size constraints that are specific to the layout item’s control (see Default Size Constraints to learn more). Changing these properties directly is prohibited.

Size constraints can be modified in custom size constraints mode. To enable this mode, set the LayoutControlItem.SizeConstraintsType property to Custom.

Instead of specifying size constraints for the layout item, you can set size constraints for the item’s client area via the LayoutControlItem.ControlMinSize and LayoutControlItem.ControlMaxSize properties. For information on how these properties are linked with the MinSize and MaxSize properties, see Layout Item’s Size Constraints vs. Client Area’s Size Constraints.

See the Size Constraints topic for more information.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the MinSize property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also