Esempio n. 1
0
 public static CT_MPr Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_MPr ctObj = new CT_MPr();
     ctObj.mcs = new List<CT_MC>();
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "baseJc")
             ctObj.baseJc = CT_YAlign.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "plcHide")
             ctObj.plcHide = CT_OnOff.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "rSpRule")
             ctObj.rSpRule = CT_SpacingRule.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "cGpRule")
             ctObj.cGpRule = CT_SpacingRule.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "rSp")
             ctObj.rSp = CT_UnSignedInteger.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "cSp")
             ctObj.cSp = CT_UnSignedInteger.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "cGp")
             ctObj.cGp = CT_UnSignedInteger.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "ctrlPr")
             ctObj.ctrlPr = CT_CtrlPr.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "mcs")
             ctObj.mcs.Add(CT_MC.Parse(childNode, namespaceManager));
     }
     return ctObj;
 }
Esempio n. 2
0
 /// <summary>
 /// CT_M class constructor
 /// </summary>
 public CT_M()
 {
     this.mrField = new List<CT_OMathArg>();
     this.mPrField = new CT_MPr();
 }