Back to Devexpress

LayoutGroup.Size Property

windowsforms-devexpress-dot-xtralayout-dot-layoutgroup-44c3d8cc.md

latest2.0 KB
Original Source

LayoutGroup.Size Property

Gets or sets the group’s size.

Namespace : DevExpress.XtraLayout

Assembly : DevExpress.XtraLayout.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public override Size Size { get; set; }
vb
Public Overrides Property Size As Size

Property Value

TypeDescription
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

MaxSize

MinSize

Height

Width

LayoutGroup Class

LayoutGroup Members

DevExpress.XtraLayout Namespace