コード例 #1
0
 /// <summary>
 /// Removes the given <paramref name="item"/> and all its children
 /// from this scene by setting the <paramref name="item"/>'s
 /// <see cref="GraphElement.Parent"/> to null (and thereby making
 /// that item its own scene in certain aspects).
 /// </summary>
 /// <param name="item">The <see cref="GraphElement"/> to remove from
 /// this scene by setting its parent to null.</param>
 public void RemoveItem(GraphElement item)
 {
     item.SetParent(null);
 }
コード例 #2
0
 /// <summary>
 /// Adds or moves the given <paramref name="item"/> and all its
 /// children to this scene by setting this scene as the
 /// <paramref name="item"/>'s <see cref="GraphElement.Parent"/>.
 /// </summary>
 /// <param name="item">The <see cref="GraphElement"/> to add to
 /// this scene by making this scene its parent.</param>
 public void AddItem(GraphElement item)
 {
     item.SetParent(this);
 }