Ejemplo n.º 1
0
 public CT_Inline AddNewInline()
 {
     CT_Inline inlineObj = new CT_Inline();
     if (this.inlineField == null)
         this.inlineField = new List<CT_Inline>();
     this.inlineField.Add(inlineObj);
     return inlineObj;
 }
Ejemplo n.º 2
0
 public static CT_Inline Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_Inline ctObj = new CT_Inline();
     ctObj.distT = XmlHelper.ReadUInt(node.Attributes["wp:distT"]);
     ctObj.distB = XmlHelper.ReadUInt(node.Attributes["wp:distB"]);
     ctObj.distL = XmlHelper.ReadUInt(node.Attributes["wp:distL"]);
     ctObj.distR = XmlHelper.ReadUInt(node.Attributes["wp:distR"]);
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "extent")
             ctObj.extent = CT_PositiveSize2D.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "effectExtent")
             ctObj.effectExtent = CT_EffectExtent.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "docPr")
             ctObj.docPr = CT_NonVisualDrawingProps.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "cNvGraphicFramePr")
             ctObj.cNvGraphicFramePr = CT_NonVisualGraphicFrameProperties.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "graphic")
             ctObj.graphic = CT_GraphicalObject.Parse(childNode, namespaceManager);
     }
     return ctObj;
 }