Skip to main content
All docs
V25.1
  • DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.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

    ControlMinSizeCalcMode Enum

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

    Namespace: DevExpress.XtraLayout

    Assembly: DevExpress.XtraLayout.v25.1.dll

    NuGet Package: DevExpress.Win.Navigation

    #Declaration

    public enum ControlMinSizeCalcMode

    #Members

    Name Description
    UseControlMinimumSize

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

    CombineControlMinimumSizeAndIXtraResizableMinSize

    The default minimum width is calculated for a control as the minimum of two values: Control.MinimumSize.Width and IXtraResizableControl.MinSize.Width.

    The default minimum height is calculated for a control as the minimum of two values: Control.MinimumSize.Height and IXtraResizableControl.MinSize.Height.

    UseControlMinimumSizeIfNotZero

    The default minimum width is specified by the Control.MinimumSize.Width property if it is not set to 0; otherwise, the default minimum width is specified by the IXtraResizableControl.MinSize.Width property.

    The default minimum height is specified by the Control.MinimumSize.Height property if it is not set to 0; otherwise, the default minimum height is specified by the IXtraResizableControl.MinSize.Height property.

    #Related API Members

    The following properties accept/return ControlMinSizeCalcMode values:

    #Remarks

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

    Note

    If the resulting minimum width/height is 0, the control’s minimum size is not limited.

    See Also