Ejemplo n.º 1
0
        internal static CT_GeomGuideList Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            CT_GeomGuideList avLst = new CT_GeomGuideList();

            avLst.gdField = new List <CT_GeomGuide>();
            if (node.ChildNodes != null)
            {
                foreach (XmlNode childNode in node.ChildNodes)
                {
                    if (childNode.LocalName == "gd")
                    {
                        avLst.gdField.Add(CT_GeomGuide.Parse(childNode, namespaceManager));
                    }
                }
            }
            return(avLst);
        }
Ejemplo n.º 2
0
        public static CT_CustomGeometry2D Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_CustomGeometry2D ctObj = new CT_CustomGeometry2D();

            ctObj.ahLst = new List <Object>();
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "rect")
                {
                    ctObj.rect = CT_GeomRect.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "avLst")
                {
                    ctObj.avLst = CT_GeomGuideList.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "gdLst")
                {
                    ctObj.gdLst = CT_GeomGuideList.Parse(childNode, namespaceManager);
                }
                //else if (childNode.LocalName == "ahLst")
                //    ctObj.ahLst.Add(Object.Parse(childNode, namespaceManager));
                else if (childNode.LocalName == "cxnLst")
                {
                    ctObj.cxnLst = CT_ConnectionSiteList.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "pathLst")
                {
                    ctObj.pathLst = CT_Path2DList.Parse(childNode, namespaceManager);
                }
            }
            return(ctObj);
        }
Ejemplo n.º 3
0
        public static CT_PresetGeometry2D Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_PresetGeometry2D ctObj = new CT_PresetGeometry2D();

            if (node.Attributes["prst"] != null)
            {
                ctObj.prst = (ST_ShapeType)Enum.Parse(typeof(ST_ShapeType), node.Attributes["prst"].Value);
            }
            if (node.ChildNodes != null)
            {
                foreach (XmlNode childNode in node.ChildNodes)
                {
                    if (childNode.LocalName == "avLst")
                    {
                        ctObj.avLstField = CT_GeomGuideList.Parse(childNode, namespaceManager);
                    }
                }
            }
            return(ctObj);
        }
Ejemplo n.º 4
0
 public CT_GeomGuideList AddNewAvLst()
 {
     this.avLstField = new CT_GeomGuideList();
     return(this.avLstField);
 }
Ejemplo n.º 5
0
 internal static CT_GeomGuideList Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     CT_GeomGuideList avLst = new CT_GeomGuideList();
     avLst.gdField = new List<CT_GeomGuide>();
     if (node.ChildNodes != null)
     {
         foreach (XmlNode childNode in node.ChildNodes)
         {
             if (childNode.LocalName == "gd")
                 avLst.gdField.Add(CT_GeomGuide.Parse(childNode, namespaceManager));
         }
     }
     return avLst;
 }
Ejemplo n.º 6
0
 public CT_GeomGuideList AddNewAvLst()
 {
     this.avLstField = new CT_GeomGuideList();
     return this.avLstField;
 }