예제 #1
0
파일: Math.cs 프로젝트: JustinChangTW/npoi
 public static CT_DPr Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_DPr ctObj = new CT_DPr();
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "begChr")
             ctObj.begChr = CT_Char.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "sepChr")
             ctObj.sepChr = CT_Char.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "endChr")
             ctObj.endChr = CT_Char.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "grow")
             ctObj.grow = CT_OnOff.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "shp")
             ctObj.shp = CT_Shp.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "ctrlPr")
             ctObj.ctrlPr = CT_CtrlPr.Parse(childNode, namespaceManager);
     }
     return ctObj;
 }
예제 #2
0
파일: Math.cs 프로젝트: hanwangkun/npoi
 /// <summary>
 /// CT_D class constructor
 /// </summary>
 public CT_D()
 {
     this.eField = new List<CT_OMathArg>();
     this.dPrField = new CT_DPr();
 }