Beispiel #1
0
        /// <summary>
        /// Construction
        /// </summary>
        /// <param name="chartModel"></param>
        public SeriesFactory(ChartModel chartModel)
        {
            if (chartModel == null)
            {
                throw new ArgumentNullException("chartModel");
            }

            // Create a list of information about template series which stores the OpenXML source for the template series,
            // information about it's clone usage, and the number of times it is used.
            this.seriesInfoList = new List <TemplateSeriesInfo>();
            foreach (var seriesElement in chartModel.GetAllSeriesElements())
            {
                var templateSeriesInfo = new TemplateSeriesInfo(seriesElement);
                seriesInfoList.Add(templateSeriesInfo);
            }
        }