MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / AddChild

Method AddChild

Source/Engine/UI/GUI/ContainerControl.cs:191–196  ·  view source on GitHub ↗

Creates a new control and adds it to the container. The added control.

()

Source from the content-addressed store, hash-verified

189 /// </summary>
190 /// <returns>The added control.</returns>
191 public T AddChild<T>() where T : Control
192 {
193 var child = (T)Activator.CreateInstance(typeof(T));
194 child.Parent = this;
195 return child;
196 }
197
198 /// <summary>
199 /// Adds the control to the container.

Callers

nothing calls this directly

Calls 2

CreateInstanceMethod · 0.45
ContainsMethod · 0.45

Tested by

no test coverage detected