Back to Devexpress

OptionsView.ControlDefaultMinSizeCalcMode Property

windowsforms-devexpress-dot-xtralayout-dot-optionsview-3fa71d79.md

latest3.5 KB
Original Source

OptionsView.ControlDefaultMinSizeCalcMode Property

Gets or sets how default minimum 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
[DefaultValue(ControlMinSizeCalcMode.CombineControlMinimumSizeAndIXtraResizableMinSize)]
public ControlMinSizeCalcMode ControlDefaultMinSizeCalcMode { get; set; }
vb
<DefaultValue(ControlMinSizeCalcMode.CombineControlMinimumSizeAndIXtraResizableMinSize)>
Public Property ControlDefaultMinSizeCalcMode As ControlMinSizeCalcMode

Property Value

TypeDefaultDescription
ControlMinSizeCalcModeCombineControlMinimumSizeAndIXtraResizableMinSize

A ControlMinSizeCalcMode value.

|

Available values:

NameDescription
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.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ControlDefaultMinSizeCalcMode
LayoutControl

.OptionsView .ControlDefaultMinSizeCalcMode

|

Remarks

Multiple DevExpress WinForms controls implement the IXtraResizableControl interface. Default size constraints can be additionally applied to individual control instances from the Control.MaximumSize and Control.MinimumSize properties. In this case, the default minimum size constraint is calculated according to the ControlDefaultMinSizeCalcMode property.

See Also

ControlDefaultMaxSizeCalcMode

OptionsView Class

OptionsView Members

DevExpress.XtraLayout Namespace