Example #1
0
 public static CT_DLbl Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_DLbl ctObj = new CT_DLbl();
     ctObj.extLst = new List<CT_Extension>();
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "idx")
             ctObj.idx = CT_UnsignedInt.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "layout")
             ctObj.layout = CT_Layout.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "dLblPos")
             ctObj.dLblPos = CT_DLblPos.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "numFmt")
             ctObj.numFmt = CT_NumFmt.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "spPr")
             ctObj.spPr = CT_ShapeProperties.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "txPr")
             ctObj.txPr = CT_TextBody.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "delete")
             ctObj.delete = CT_Boolean.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "showBubbleSize")
             ctObj.showBubbleSize = CT_Boolean.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "showCatName")
             ctObj.showCatName = CT_Boolean.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "showLegendKey")
             ctObj.showLegendKey = CT_Boolean.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "showPercent")
             ctObj.showPercent = CT_Boolean.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "showSerName")
             ctObj.showSerName = CT_Boolean.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "showVal")
             ctObj.showVal = CT_Boolean.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "separator")
             ctObj.separator = childNode.InnerText;
         else if (childNode.LocalName == "extLst")
             ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager));
     }
     return ctObj;
 }
Example #2
0
 public CT_PivotFmt()
 {
     this.extLstField = new List<CT_Extension>();
     this.dLblField = new CT_DLbl();
     this.markerField = new CT_Marker();
     this.idxField = new CT_UnsignedInt();
 }