コード例 #1
0
ファイル: Surface.cs プロジェクト: DisruptionTheory/WebDE
 /// <summary>
 /// Add a new component to the surface at the specified x and y coordinate.
 /// </summary>
 /// <param name="component">The component to add to the surface.</param>
 /// <param name="x">The x coordinate.</param>
 /// <param name="y">The y coordinate.</param>
 public static void AddComponent(UITKComponent component)
 {
     if (!initialized) Initialize();
     children.Add(component, component);
     Element element = document.createElement("div");
     element.setAttribute("id", component.Id);
     surface.appendChild(element);
     component.Validate();
 }