AODL.Document.Content.Charts.ChartImporter.CreateChartGrid C# (CSharp) Method

CreateChartGrid() private method

create the chart grid
private CreateChartGrid ( XmlNode node ) : IContent
node System.Xml.XmlNode
return IContent
		private IContent CreateChartGrid(XmlNode node)
		{
			try
			{
				ChartGrid grid              = new ChartGrid  (this.Chart .Document ,node);
				//grid.Node                   = node;
				grid.Chart                  = this.Chart ;

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

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

				return grid;
			}

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