Back to Devexpress

OptionsView.ControlDefaultMaxSizeCalcMode Property

windowsforms-devexpress-dot-xtralayout-dot-optionsview-3943e3ea.md

latest3.5 KB
Original Source

OptionsView.ControlDefaultMaxSizeCalcMode Property

Gets or sets 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
[DefaultValue(ControlMaxSizeCalcMode.CombineControlMaximumSizeAndIXtraResizableMaxSize)]
public ControlMaxSizeCalcMode ControlDefaultMaxSizeCalcMode { get; set; }
vb
<DefaultValue(ControlMaxSizeCalcMode.CombineControlMaximumSizeAndIXtraResizableMaxSize)>
Public Property ControlDefaultMaxSizeCalcMode As ControlMaxSizeCalcMode

Property Value

TypeDefaultDescription
ControlMaxSizeCalcModeCombineControlMaximumSizeAndIXtraResizableMaxSize

A ControlMaxSizeCalcMode value.

|

Available values:

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.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ControlDefaultMaxSizeCalcMode
LayoutControl

.OptionsView .ControlDefaultMaxSizeCalcMode

|

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 maximum size constraint is calculated according to the ControlDefaultMaxSizeCalcMode property.

See Also

ControlDefaultMinSizeCalcMode

OptionsView Class

OptionsView Members

DevExpress.XtraLayout Namespace