Exemplo n.º 1
0
 public static CT_ManualLayout Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_ManualLayout ctObj = new CT_ManualLayout();
     ctObj.extLst = new List<CT_Extension>();
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "layoutTarget")
             ctObj.layoutTarget = CT_LayoutTarget.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "xMode")
             ctObj.xMode = CT_LayoutMode.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "yMode")
             ctObj.yMode = CT_LayoutMode.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "wMode")
             ctObj.wMode = CT_LayoutMode.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "hMode")
             ctObj.hMode = CT_LayoutMode.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "x")
             ctObj.x = CT_Double.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "y")
             ctObj.y = CT_Double.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "w")
             ctObj.w = CT_Double.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "h")
             ctObj.h = CT_Double.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "extLst")
             ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager));
     }
     return ctObj;
 }
Exemplo n.º 2
0
 private void InitLayout(CT_Layout ctLayout)
 {
     if (ctLayout.IsSetManualLayout())
     {
         this.layout = ctLayout.manualLayout;
     }
     else
     {
         this.layout = ctLayout.AddNewManualLayout();
     }
 }
Exemplo n.º 3
0
 public CT_ManualLayout AddNewManualLayout()
 {
     this.manualLayoutField = new CT_ManualLayout();
     return this.manualLayoutField;
 }