Click or drag to resize

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
protected void SetParent(
	Control child,
	Action assign = null,
	Control previousChild = null


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

true, if parent was set, false otherwise.
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