Back to Devexpress

ControlMaxSizeCalcMode Enum

windowsforms-devexpress-dot-xtralayout-44b51a2a.md

latest2.6 KB
Original Source

ControlMaxSizeCalcMode Enum

Contains values that specify how default maximum size constraints are calculated for controls that implement the IXtraResizableControl interface.

Namespace : DevExpress.XtraLayout

Assembly : DevExpress.XtraLayout.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public enum ControlMaxSizeCalcMode
vb
Public Enum ControlMaxSizeCalcMode

Members

NameDescription
UseControlMaximumSize

The default maximum width and height are specified by the Control.MaximumSize.Width and Control.MaximumSize.Height values, respectively.

| | CombineControlMaximumSizeAndIXtraResizableMaxSize |

The default maximum width is calculated for a control as the maximum of two values: Control.MaximumSize.Width and IXtraResizableControl.MaxSize.Width.

The default maximum height is calculated for a control as the maximum of two values: Control.MaximumSize.Height and IXtraResizableControl.MaxSize.Height.

| | UseControlMaximumSizeIfNotZero |

The default maximum width is specified by the Control.MaximumSize.Width property if it is not set to 0 ; otherwise, the default maximum width is specified by the IXtraResizableControl.MaxSize.Width property.

The default maximum height is specified by the Control.MaximumSize.Height property if it is not set to 0 ; otherwise, the default maximum height is specified by the IXtraResizableControl.MaxSize.Height property.

|

The following properties accept/return ControlMaxSizeCalcMode values:

Remarks

Use the OptionsView.ControlDefaultMaxSizeCalcMode property to specify how default maximum size constraints are calculated for controls within the Layout Control.

Note

If the resulting maximum width/height is 0 , the control can grow without limits in the horizontal/vertical direction.

See Also

ControlDefaultMaxSizeCalcMode

DevExpress.XtraLayout Namespace