Back to Devexpress

LayoutControlItem.MaxSize Property

windowsforms-devexpress-dot-xtralayout-dot-layoutcontrolitem-887bbd43.md

latest2.5 KB
Original Source

LayoutControlItem.MaxSize Property

Gets or sets the layout item’s maximum size.

Namespace : DevExpress.XtraLayout

Assembly : DevExpress.XtraLayout.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDescription
Size

A System.Drawing.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. 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

MinSize

SizeConstraintsType

Size and Alignment

LayoutControlItem Class

LayoutControlItem Members

DevExpress.XtraLayout Namespace