Skip to main content

LayoutControlItem.MaxSize Property

Gets or sets the layout item’s maximum size.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v22.2.dll

NuGet Package: DevExpress.Win.Navigation


public override Size MaxSize { get; set; }

Property Value

Type Description

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


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. You cannot change these properties in this mode.

You can modify size constraints in custom size constraints mode.

See the Size and Alignment topic for more information.

See Also