Example #1
0
        public static CT_ShapeNonVisual Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_ShapeNonVisual ctObj = new CT_ShapeNonVisual();

            foreach (XElement childNode in node.ChildElements())
            {
                if (childNode.Name.LocalName == "cNvPr")
                {
                    ctObj.cNvPr = CT_NonVisualDrawingProps.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "cNvSpPr")
                {
                    ctObj.cNvSpPr = CT_NonVisualDrawingShapeProps.Parse(childNode, namespaceManager);
                }
            }
            return(ctObj);
        }
Example #2
0
        public static CT_NonVisualDrawingShapeProps Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_NonVisualDrawingShapeProps ctObj = new CT_NonVisualDrawingShapeProps();

            ctObj.txBox = XmlHelper.ReadBool(node.Attribute("txBox"));
            foreach (XElement childNode in node.ChildElements())
            {
                if (childNode.Name.LocalName == "spLocks")
                {
                    ctObj.spLocks = CT_ShapeLocking.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "extLst")
                {
                    ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager);
                }
            }
            return(ctObj);
        }
Example #3
0
 public CT_NonVisualDrawingShapeProps AddNewCNvSpPr()
 {
     this.cNvSpPrField = new CT_NonVisualDrawingShapeProps();
     return(this.cNvSpPrField);
 }