public override ISvgNodeRenderer CreateDeepCopy()
 {
     iText.Svg.Renderers.Impl.TextSvgBranchRenderer copy = new iText.Svg.Renderers.Impl.TextSvgBranchRenderer();
     DeepCopyAttributesAndStyles(copy);
     DeepCopyChildren(copy);
     return(copy);
 }
 private void DeepCopyChildren(iText.Svg.Renderers.Impl.TextSvgBranchRenderer deepCopy)
 {
     foreach (ISvgTextNodeRenderer child in children)
     {
         ISvgTextNodeRenderer newChild = (ISvgTextNodeRenderer)child.CreateDeepCopy();
         child.SetParent(deepCopy);
         deepCopy.AddChild(newChild);
     }
 }