Skip to main content

DevExpress v24.1 Update — Your Feedback Matters

Our What's New in v24.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

LayoutGroup.Size Property

Gets or sets the group’s size.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public override Size Size { get; set; }

#Property Value

Type Description
Size

A System.Drawing.Size structure that defines the group’s width and height.

#Remarks

Use this property to change the group’s size. This may also affect the size of adjacent layout items.

The group’s size is limited by its maximum and minimum sizes. These sizes are determined by the BaseLayoutItem.MinSize and BaseLayoutItem.MaxSize properties of the group’s child items.

The LayoutControl takes into account the size constraints imposed by layout items while setting an item’s or group’s size via the Size property. When a value is assigned to the Size property, the group’s new size will be set as close as possible to the assigned size so that the size constraints of other items are not violated.

See Also