Esempio n. 1
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);
            }
            ctObj.avLst = new List <CT_GeomGuide>();
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "avLst")
                {
                    ctObj.avLst.Add(CT_GeomGuide.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }
Esempio n. 2
0
 public CT_PresetGeometry2D AddNewPrstGeom()
 {
     this.prstGeomField = new CT_PresetGeometry2D();
     return this.prstGeomField;
 }
Esempio n. 3
0
        //public CT_ShapeProperties()
        //{
        //    this.extLstField = new CT_OfficeArtExtensionList();
        //    this.sp3dField = new CT_Shape3D();
        //    this.scene3dField = new CT_Scene3D();
        //    this.effectDagField = new CT_EffectContainer();
        //    this.effectLstField = new CT_EffectList();
        //    //this.lnField = new CT_LineProperties();
        //    this.grpFillField = new CT_GroupFillProperties();
        //    this.pattFillField = new CT_PatternFillProperties();
        //    this.blipFillField = new CT_BlipFillProperties();
        //    this.gradFillField = new CT_GradientFillProperties();

        //    this.noFillField = new CT_NoFillProperties();
        //    this.prstGeomField = new CT_PresetGeometry2D();
        //    this.custGeomField = new CT_CustomGeometry2D();
        //    //this.xfrmField = new CT_Transform2D();
        //}
        public CT_PresetGeometry2D AddNewPrstGeom()
        {
            this.prstGeomField = new CT_PresetGeometry2D();
            return(this.prstGeomField);
        }
Esempio n. 4
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;
 }