예제 #1
0
파일: Math.cs 프로젝트: JustinChangTW/npoi
 public static CT_BorderBoxPr Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_BorderBoxPr ctObj = new CT_BorderBoxPr();
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "hideTop")
             ctObj.hideTop = CT_OnOff.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "hideBot")
             ctObj.hideBot = CT_OnOff.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "hideLeft")
             ctObj.hideLeft = CT_OnOff.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "hideRight")
             ctObj.hideRight = CT_OnOff.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "strikeH")
             ctObj.strikeH = CT_OnOff.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "strikeV")
             ctObj.strikeV = CT_OnOff.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "strikeBLTR")
             ctObj.strikeBLTR = CT_OnOff.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "strikeTLBR")
             ctObj.strikeTLBR = CT_OnOff.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_BorderBox class constructor
 /// </summary>
 public CT_BorderBox()
 {
     this.eField = new CT_OMathArg();
     this.borderBoxPrField = new CT_BorderBoxPr();
 }