Summary description for SeriesStyle.
Inheritance: AODL.Document.Styles.AbstractStyle
Exemplo n.º 1
0
        /// <summary>
        /// create chart series style
        /// </summary>
        /// <param name="nodeStyle"></param>
        /// <returns></returns>

        private SeriesStyle CreateChartSeriesStyle(XmlNode nodeStyle)
        {
            SeriesStyle seriesStyle = new SeriesStyle(this.Chart.Document, nodeStyle);

            seriesStyle.Node = nodeStyle;

            IPropertyCollection pCollection = new IPropertyCollection();

            if (nodeStyle.HasChildNodes)
            {
                foreach (XmlNode nodeChild in nodeStyle.ChildNodes)
                {
                    IProperty property = this.GetProperty(seriesStyle, nodeChild);
                    if (property != null)
                    {
                        pCollection.Add(property);
                    }
                }
            }

            seriesStyle.Node.InnerXml = "";

            foreach (IProperty property in pCollection)
            {
                seriesStyle.PropertyCollection.Add(property);
            }

            //this.Chart .Styles .Add (seriesStyle);

            return(seriesStyle);
        }
Exemplo n.º 2
0
        /// <summary>
        /// create chart series style
        /// </summary>
        /// <param name="nodeStyle"></param>
        /// <returns></returns>
        private SeriesStyle CreateChartSeriesStyle(XElement nodeStyle)
        {
            SeriesStyle seriesStyle = new SeriesStyle(Chart.Document, nodeStyle)
            {
                Node = nodeStyle
            };

            IPropertyCollection pCollection = new IPropertyCollection();

            if (nodeStyle.HasElements)
            {
                foreach (XElement nodeChild in nodeStyle.Elements())
                {
                    IProperty property = GetProperty(seriesStyle, nodeChild);
                    if (property != null)
                    {
                        pCollection.Add(property);
                    }
                }
            }

            seriesStyle.Node.Value = "";

            foreach (IProperty property in pCollection)
            {
                seriesStyle.PropertyCollection.Add(property);
            }

            //this.Chart .Styles .Add (seriesStyle);

            return(seriesStyle);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Initializes a new instance of the ChartPlotArea class.
        /// This will create an empty cell that use the default cell style
        /// </summary>
        /// <param name="chart">The chart.</param>
        public ChartSeries(Chart chart)
        {
            Chart               = chart;
            Document            = chart.Document;
            DataPointCollection = new DataPointCollection();
            Node        = new XElement(Ns.Chart + "series");
            SeriesStyle = new SeriesStyle(Document);
            Chart.Styles.Add(SeriesStyle);

            InitStandards();
        }
Exemplo n.º 4
0
        /// <summary>
        /// Initializes a new instance of the ChartPlotArea class.
        /// </summary>
        /// <param name="chart">The chart.</param>
        /// <param name="styleName">The style name.</param>
        public ChartSeries(Chart chart, string styleName)
        {
            Chart    = chart;
            Document = chart.Document;
            Node     = new XElement(Ns.Chart + "series");
            Node.SetAttributeValue(Ns.Chart + "style-name", styleName);
            InitStandards();
            DataPointCollection = new DataPointCollection();

            if (styleName != null)
            {
                StyleName   = styleName;
                SeriesStyle = new SeriesStyle(Document, styleName);
                Chart.Styles.Add(SeriesStyle);
            }
        }
		/// <summary>
		/// create chart series style
		/// </summary>
		/// <param name="nodeStyle"></param>
		/// <returns></returns>

		private SeriesStyle CreateChartSeriesStyle(XmlNode nodeStyle)
		{
			SeriesStyle    seriesStyle          =new SeriesStyle (this.Chart .Document, nodeStyle);
			seriesStyle.Node                    = nodeStyle;

			IPropertyCollection  pCollection    = new IPropertyCollection ();

			if (nodeStyle.HasChildNodes)
			{

				foreach(XmlNode nodeChild in nodeStyle.ChildNodes )
				{
					IProperty property          = this.GetProperty (seriesStyle,nodeChild);
					if (property!=null)
					
						pCollection.Add (property);
					
				}
			}

			seriesStyle.Node.InnerXml="";

			foreach(IProperty property in pCollection)

				seriesStyle.PropertyCollection .Add (property);

			//this.Chart .Styles .Add (seriesStyle);

			return seriesStyle;

		}