LayoutControlItem.SizeConstraintsType Property

Gets or sets the size constraints type.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v20.1.dll

Declaration

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

Property Value

Type Default Description
SizeConstraintsType

Default

A SizeConstraintsType enumeration value which specifies the manner in which the current layout item can be resized.

Remarks

If the SizeConstraintsType property is set to SizeConstraintsType.Default, the current layout item's size constraints are automatically determined based upon the type of the layout item's control.

Custom size constraints can be applied if the SizeConstraintsType property is set to SizeConstraintsType.Custom. To set the constraints in this mode, use the LayoutControlItem.MinSize and LayoutControlItem.MaxSize properties.

When size constraints are applied and OptionsView.UseSkinIndents option is enabled, control sizes might change when changing a paint scheme. This occurs because the real size of a control is affected by layout item padding.

See the Size and Alignment topic for more details.

See Also