public static CT_GeomGuide Parse(XElement node, XmlNamespaceManager namespaceManager) { if (node == null) { return(null); } CT_GeomGuide ctObj = new CT_GeomGuide(); ctObj.name = XmlHelper.ReadString(node.Attribute("name")); ctObj.fmla = XmlHelper.ReadString(node.Attribute("fmla")); return(ctObj); }
internal static CT_GeomGuideList Parse(XElement node, XmlNamespaceManager namespaceManager) { CT_GeomGuideList avLst = new CT_GeomGuideList(); avLst.gdField = new List <CT_GeomGuide>(); if (node.ChildElements() != null) { foreach (XElement childNode in node.ChildElements()) { if (childNode.Name.LocalName == "gd") { avLst.gdField.Add(CT_GeomGuide.Parse(childNode, namespaceManager)); } } } return(avLst); }
public static CT_PresetTextShape Parse(XElement node, XmlNamespaceManager namespaceManager) { if (node == null) { return(null); } CT_PresetTextShape ctObj = new CT_PresetTextShape(); if (node.Attribute("prst") != null) { ctObj.prst = (ST_TextShapeType)Enum.Parse(typeof(ST_TextShapeType), node.Attribute("prst").Value); } ctObj.avLst = new List <CT_GeomGuide>(); foreach (XElement childNode in node.ChildElements()) { if (childNode.Name.LocalName == "avLst") { ctObj.avLst.Add(CT_GeomGuide.Parse(childNode, namespaceManager)); } } return(ctObj); }