Ejemplo n.º 1
0
Archivo: Text.cs Proyecto: zbl960/npoi
        public static CT_TextBody Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_TextBody ctObj = new CT_TextBody();

            ctObj.p = new List <CT_TextParagraph>();
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "bodyPr")
                {
                    ctObj.bodyPr = CT_TextBodyProperties.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "lstStyle")
                {
                    ctObj.lstStyle = CT_TextListStyle.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "p")
                {
                    ctObj.p.Add(CT_TextParagraph.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }
Ejemplo n.º 2
0
 public CT_TableCell()
 {
     this.extLstField   = new CT_OfficeArtExtensionList();
     this.tcPrField     = new CT_TableCellProperties();
     this.txBodyField   = new CT_TextBody();
     this.rowSpanField  = 1;
     this.gridSpanField = 1;
     this.hMergeField   = false;
     this.vMergeField   = false;
 }
Ejemplo n.º 3
0
Archivo: Text.cs Proyecto: kahinke/npoi
 public static CT_TextBody Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_TextBody ctObj = new CT_TextBody();
     ctObj.p = new List<CT_TextParagraph>();
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "bodyPr")
             ctObj.bodyPr = CT_TextBodyProperties.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "lstStyle")
             ctObj.lstStyle = CT_TextListStyle.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "p")
             ctObj.p.Add(CT_TextParagraph.Parse(childNode, namespaceManager));
     }
     return ctObj;
 }
Ejemplo n.º 4
0
 public CT_TableCell()
 {
     this.extLstField = new CT_OfficeArtExtensionList();
     this.tcPrField = new CT_TableCellProperties();
     this.txBodyField = new CT_TextBody();
     this.rowSpanField = 1;
     this.gridSpanField = 1;
     this.hMergeField = false;
     this.vMergeField = false;
 }