LayoutControlItem.MaxSize Property

Gets or sets the layout item's maximum size.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v20.1.dll

Declaration

[XtraSerializableProperty]
public override Size MaxSize { get; set; }
<XtraSerializableProperty>
Public Overrides Property MaxSize As Size

Property Value

Type Description
Size

A Size structure that defines the item's maximum width and height.

Remarks

A layout item's size can vary between the sizes determined by the LayoutControlItem.MinSize and 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 LayoutControlItem.MinSize and 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). You cannot change these properties in this mode.

You can modify size constraints in custom size constraints mode.

See the Size Constraints topic for more information.

See Also