Пример #1
0
        public static CT_BarChart Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_BarChart ctObj = new CT_BarChart();

            ctObj.ser      = new List <CT_BarSer>();
            ctObj.serLines = new List <CT_ChartLines>();
            ctObj.axId     = new List <CT_UnsignedInt>();
            ctObj.extLst   = new List <CT_Extension>();
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "barDir")
                {
                    ctObj.barDir = CT_BarDir.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "grouping")
                {
                    ctObj.grouping = CT_BarGrouping.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "varyColors")
                {
                    ctObj.varyColors = CT_Boolean.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "dLbls")
                {
                    ctObj.dLbls = CT_DLbls.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "gapWidth")
                {
                    ctObj.gapWidth = CT_GapAmount.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "overlap")
                {
                    ctObj.overlap = CT_Overlap.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "ser")
                {
                    ctObj.ser.Add(CT_BarSer.Parse(childNode, namespaceManager));
                }
                else if (childNode.LocalName == "serLines")
                {
                    ctObj.serLines.Add(CT_ChartLines.Parse(childNode, namespaceManager));
                }
                else if (childNode.LocalName == "axId")
                {
                    ctObj.axId.Add(CT_UnsignedInt.Parse(childNode, namespaceManager));
                }
                else if (childNode.LocalName == "extLst")
                {
                    ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }
Пример #2
0
 public CT_Bar3DChart()
 {
     this.extLstField     = new List <CT_Extension>();
     this.axIdField       = new List <CT_UnsignedInt>();
     this.shapeField      = new CT_Shape();
     this.gapDepthField   = new CT_GapAmount();
     this.gapWidthField   = new CT_GapAmount();
     this.dLblsField      = new CT_DLbls();
     this.serField        = new List <CT_BarSer>();
     this.varyColorsField = new CT_Boolean();
     this.groupingField   = new CT_BarGrouping();
     this.barDirField     = new CT_BarDir();
 }
Пример #3
0
        public static CT_BarGrouping Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_BarGrouping ctObj = new CT_BarGrouping();

            if (node.Attributes["val"] != null)
            {
                ctObj.val = (ST_BarGrouping)Enum.Parse(typeof(ST_BarGrouping), node.Attributes["val"].Value);
            }
            return(ctObj);
        }
Пример #4
0
 public CT_BarChart()
 {
     this.extLstField = new List<CT_Extension>();
     this.axIdField = new List<CT_UnsignedInt>();
     this.serLinesField = new List<CT_ChartLines>();
     this.overlapField = new CT_Overlap();
     this.gapWidthField = new CT_GapAmount();
     this.dLblsField = new CT_DLbls();
     this.serField = new List<CT_BarSer>();
     this.varyColorsField = new CT_Boolean();
     this.groupingField = new CT_BarGrouping();
     this.barDirField = new CT_BarDir();
 }
Пример #5
0
 public CT_Bar3DChart()
 {
     this.extLstField = new List<CT_Extension>();
     this.axIdField = new List<CT_UnsignedInt>();
     this.shapeField = new CT_Shape();
     this.gapDepthField = new CT_GapAmount();
     this.gapWidthField = new CT_GapAmount();
     this.dLblsField = new CT_DLbls();
     this.serField = new List<CT_BarSer>();
     this.varyColorsField = new CT_Boolean();
     this.groupingField = new CT_BarGrouping();
     this.barDirField = new CT_BarDir();
 }
Пример #6
0
 public static CT_BarGrouping Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_BarGrouping ctObj = new CT_BarGrouping();
     if (node.Attributes["val"] != null)
         ctObj.val = (ST_BarGrouping)Enum.Parse(typeof(ST_BarGrouping), node.Attributes["val"].Value);
     return ctObj;
 }
Пример #7
0
 public CT_BarGrouping AddNewGrouping()
 {
     this.groupingField = new CT_BarGrouping();
     return(this.groupingField);
 }