SizeConstraintsType Enum
Enumerates size constraints modes.
Namespace: DevExpress.XtraLayout
Assembly: DevExpress.XtraLayout.v18.1.dll
Declaration
Members
Name | Description |
---|---|
Default
|
Default Size Constraints are applied to the layout item and its control. The default size constraints are determined automatically depending upon the type of its control. |
SupportHorzAlignment
|
This mode is designed to support horizontal alignment of the controls that implement the automatic sizing feature, when they are displayed within a LayoutControl. A layout item’s maximum and minimum sizes are determined automatically. To custom align a control, set its AutoSizeInLayoutControl property to true and specify the control’s alignment via the LayoutControlItem.ControlAlignment property. See Aligning Controls Within Layout Items to learn more. |
Custom
|
A layout item’s size can be changed within the range which is specified by the LayoutControlItem.MinSize and LayoutControlItem.MaxSize properties. |
Related API Members
The following properties accept/return SizeConstraintsType values:
Remarks
Size constraints can be applied to layout items to limit the ranges in which the size of items can be changed. To set size constraints mode use a layout item’s LayoutControlItem.SizeConstraintsType property.
Refer to the Size Constraints topic for more details.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the SizeConstraintsType enum.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.