ContainerSetParent Method |
Sets the parent of the specified child to this container
Namespace:
Eto.Forms
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax protected void SetParent(
Control child,
Action assign = null,
Control previousChild = null
)
Protected Sub SetParent (
child As Control,
Optional assign As Action = Nothing,
Optional previousChild As Control = Nothing
)
member SetParent :
child : Control *
?assign : Action *
?previousChild : Control
(* Defaults:
let _assign = defaultArg assign null
let _previousChild = defaultArg previousChild null
*)
-> unit
Parameters
- child
- Type: Eto.FormsControl
Child to set the parent - assign (Optional)
- Type: SystemAction
Method to assign the child to the handler - previousChild (Optional)
- Type: Eto.FormsControl
Previous child that the new child is replacing.
Return Value
Type:
true, if parent was set,
false otherwise.
Remarks
This is used by container authors to set the parent of a child before it is added to the underlying platform control.
The assign parameter should call the handler method to add the child to the parent.
See Also