/// <summary> /// 20130612 :: Add custom element. /// </summary> /// <param name="tableCell"></param> /// <param name="tableCellNode"></param> /// <param name="fontAttrs"></param> private void BuildTableCellChildElement( TableCell tableCell, XmlNode tableCellNode, XmlAttributeCollection fontAttrs) { foreach (XmlNode child in tableCellNode.ChildNodes) { switch (child.Name) { case "textbox": tableCell.AddDrawElement(pdfTemplate.BuildTextBox(child, fontAttrs)); break; case "image": tableCell.AddDrawElement(pdfTemplate.BuildImage(child, fontAttrs)); break; //20130612 :: mellorasinxelas :: custom case PDFTemplate.PDFTemplate.CustomElementConstant: tableCell.AddDrawElement(pdfTemplate.BuildCustomElement(child, fontAttrs)); break; } if (child.Name == "font" && child.HasChildNodes) { BuildTableCellChildElement(tableCell, child, child.Attributes); } } }