Summary description for ChartCategories.
Inheritance: IContent
コード例 #1
0
        /// <summary>
        /// create the chart category
        /// </summary>
        /// <param name="node"></param>
        /// <returns></returns>

        private IContent CreateChartCategories(XmlNode node)
        {
            try
            {
                ChartCategories categories = new ChartCategories(this.Chart.Document, node);
                //categories.Node             = node;
                categories.Chart = this.Chart;

                ChartStyleProcessor csp       = new ChartStyleProcessor(this.Chart);
                XmlNode             nodeStyle = csp.ReadStyleNode(categories.StyleName);
                IStyle style = csp.ReadStyle(nodeStyle, "categories");

                if (style != null)
                {
                    categories.Style = style;
                    this.Chart.Styles.Add(style);
                }

                return(categories);
            }

            catch (Exception ex)
            {
                throw new AODLException("Exception while creating the chart categories!", ex);
            }
        }
コード例 #2
0
		/// <summary>
		/// create the chart category
		/// </summary>
		/// <param name="node"></param>
		/// <returns></returns>

		private IContent CreateChartCategories(XmlNode node)
		{
			try
			{
				ChartCategories categories  = new ChartCategories (this.Chart .Document ,node);
				//categories.Node             = node;
				categories.Chart            = this.Chart ;

				ChartStyleProcessor csp     = new ChartStyleProcessor (this.Chart );
				XmlNode nodeStyle           = csp.ReadStyleNode(categories.StyleName);
				IStyle style                = csp.ReadStyle (nodeStyle,"categories");

				if (style != null)
				{
					categories.Style          =style;
					this.Chart .Styles .Add (style);
				}

				return categories;
			}

			catch(Exception ex)
			{
				throw new AODLException("Exception while creating the chart categories!", ex);
			}


		}