BaseLayoutItem.Size Property

Gets or sets the layout item's size.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v20.1.dll

Declaration

[XtraSerializableProperty]
[DXCategory("Layout")]
public virtual Size Size { get; set; }
<XtraSerializableProperty>
<DXCategory("Layout")>
Public Overridable Property Size As Size

Property Value

Type Description
Size

A 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