DynamicLayoutAddSeparateRow Method (NullablePadding, NullableSize, NullableBoolean, NullableBoolean, IEnumerableControl) |
Adds a separate horizontal row of items in a new vertical section
Namespace:
Eto.Forms
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public DynamicRow AddSeparateRow(
Nullable<Padding> padding = null,
Nullable<Size> spacing = null,
Nullable<bool> xscale = null,
Nullable<bool> yscale = null,
IEnumerable<Control> controls = null
)
Public Function AddSeparateRow (
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 controls As IEnumerable(Of Control) = Nothing
) As DynamicRow
member AddSeparateRow :
?padding : Nullable<Padding> *
?spacing : Nullable<Size> *
?xscale : Nullable<bool> *
?yscale : Nullable<bool> *
?controls : IEnumerable<Control>
(* Defaults:
let _padding = defaultArg padding null
let _spacing = defaultArg spacing null
let _xscale = defaultArg xscale null
let _yscale = defaultArg yscale null
let _controls = defaultArg controls null
*)
-> DynamicRow
Parameters
- padding (Optional)
- Type: SystemNullablePadding
Padding for the vertical section - spacing (Optional)
- Type: SystemNullableSize
Spacing between each cell in the row - xscale (Optional)
- Type: SystemNullableBoolean
Xscale for the vertical section - yscale (Optional)
- Type: SystemNullableBoolean
Yscale for each of the controls in the row - controls (Optional)
- Type: System.Collections.GenericIEnumerableControl
Controls to add initially
Return Value
Type:
DynamicRowThe row added to contain the items
Remarks
This performs the same as the following, but in a single line:
layout.BeginVertical(padding, spacing, xscale, yscale);
layout.BeginHorizontal();
layout.Add(control1);
layout.Add(control2);
...
layout.EndHorizontal();
layout.EndVertical();
See Also