DynamicLayoutAddAutoSized Method |
Adds a control to the layout with its preferred size instead of taking the entire space of the cell
Namespace:
Eto.Forms
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public void AddAutoSized(
Control control,
Nullable<Padding> padding = null,
Nullable<Size> spacing = null,
Nullable<bool> xscale = null,
Nullable<bool> yscale = null,
bool centered = false
)
Public Sub AddAutoSized (
control As Control,
Optional padding As Nullable(Of Padding) = Nothing,
Optional spacing As Nullable(Of Size) = Nothing,
Optional xscale As Nullable(Of Boolean) = Nothing,
Optional yscale As Nullable(Of Boolean) = Nothing,
Optional centered As Boolean = false
)
member AddAutoSized :
control : Control *
?padding : Nullable<Padding> *
?spacing : Nullable<Size> *
?xscale : Nullable<bool> *
?yscale : Nullable<bool> *
?centered : bool
(* Defaults:
let _padding = defaultArg padding null
let _spacing = defaultArg spacing null
let _xscale = defaultArg xscale null
let _yscale = defaultArg yscale null
let _centered = defaultArg centered false
*)
-> unit
Parameters
- control
- Type: Eto.FormsControl
Control to add - padding (Optional)
- Type: SystemNullablePadding
Padding around the vertical section - spacing (Optional)
- Type: SystemNullableSize
Spacing between cells - xscale (Optional)
- Type: SystemNullableBoolean
Xscale for the vertical section - yscale (Optional)
- Type: SystemNullableBoolean
Yscale for the vertical section - centered (Optional)
- Type: SystemBoolean
If set to true center the control.
See Also