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

BaseLayoutItem.Size Property

Gets or sets the layout item’s size.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[XtraSerializableProperty]
[DXCategory("Layout")]
public virtual Size Size { get; set; }

#Property Value

Type Description
Size

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

#Remarks

The Size structure stores the width and height of the layout item. Changing the Width and Height attributes modifies the item’s size relative to the item’s top left corner. This may also affect the size of adjacent layout items.

The minimum and maximum sizes of the layout item are determined by the BaseLayoutItem.MinSize and BaseLayoutItem.MaxSize properties, respectively.

The LayoutControl takes into account the size constraints imposed by the current and adjacent layout items while setting the item’s size via the Size and/or BaseLayoutItem.Location properties. The item’s new size will be set as near as possible to the assigned size so that the size constraints of the items are not violated.

See Also