DynamicLayoutBeginCentered Method |
Creates a new section where all controls will be centered together.
Namespace:
Eto.Forms
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public void BeginCentered(
Nullable<Padding> padding = null,
Nullable<Size> spacing = null,
Nullable<bool> xscale = null,
Nullable<bool> yscale = null
)
Public Sub BeginCentered (
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
)
member BeginCentered :
?padding : Nullable<Padding> *
?spacing : Nullable<Size> *
?xscale : Nullable<bool> *
?yscale : Nullable<bool>
(* Defaults:
let _padding = defaultArg padding null
let _spacing = defaultArg spacing null
let _xscale = defaultArg xscale null
let _yscale = defaultArg yscale null
*)
-> unit
Parameters
- padding (Optional)
- Type: SystemNullablePadding
Padding to apply around the controls, or null to use the DefaultPadding - spacing (Optional)
- Type: SystemNullableSize
Spacing to apply to cells in the section, or null to use the DefaultSpacing - xscale (Optional)
- Type: SystemNullableBoolean
Xscale of the vertical section - yscale (Optional)
- Type: SystemNullableBoolean
Yscale of the vertical section
Remarks
This is useful when you want to create a section that groups controls which align themselves together but are centered in the parent.
When finished adding controls to the centered section, call
EndCentered.
To center vertically, set
yscale to
true.
See Also