Entity.AddChild Method

GeonBit.UI

EntityAddChild Method
Add a child entity.

Namespace:  GeonBit.UI.Entities
Assembly:  GeonBit.UI (in GeonBit.UI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public Entity AddChild(
	Entity child,
	bool inheritParentState = false,
	int index = -1
)

Parameters

child
Type: GeonBit.UI.EntitiesEntity
Entity to add as child.
inheritParentState (Optional)
Type: SystemBoolean
If true, this entity will inherit the parent's state (set InheritParentState property).
index (Optional)
Type: SystemInt32
If provided, will be the index in the children array to push the new entity.

Return Value

Type: Entity
The newly added entity.
See Also