Пример #1
0
 /// <summary>
 /// Create a deep copy of every child renderer and add them to the passed
 /// <see cref="AbstractBranchSvgNodeRenderer"/>
 /// </summary>
 /// <param name="deepCopy">renderer to add copies of children to</param>
 protected internal void DeepCopyChildren(AbstractBranchSvgNodeRenderer deepCopy)
 {
     foreach (ISvgNodeRenderer child in children)
     {
         ISvgNodeRenderer newChild = child.CreateDeepCopy();
         child.SetParent(deepCopy);
         deepCopy.AddChild(newChild);
     }
 }