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

LayoutGroup.Size Property

Gets or sets the group’s size.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v19.2.dll

Declaration

public override Size Size { get; set; }

Property Value

Type Description
Size

A 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