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 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:
EntityThe newly added entity.
See Also