Click or drag to resize

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
)

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