AODL.Document.Content.Charts.Chart.CreateContentBody C# (CSharp) Метод

CreateContentBody() приватный Метод

Creates the content body
private CreateContentBody ( ) : void
Результат void
		private void CreateContentBody()
		{
			XmlNode nodeRoot		= this.ChartDoc .SelectSingleNode(
				"/office:document-content/office:body/office:chart", this.Document .NamespaceManager );

			
			nodeRoot.RemoveAll ();
			XmlNode nodeChart =this.ChartDoc .ImportNode (this.Node,true );
			nodeRoot.AppendChild (nodeChart);
			
			
			foreach(IContent iContent in this.Content)
			{
				
				//if (iContent is Chart)
				//nodeChart.AppendChild(((Chart)iContent).Node );
				if (iContent is ChartLegend )
				{
					XmlNode  nodeLegend = this.ChartDoc .ImportNode (((ChartLegend)iContent).Node ,true);
					nodeChart.AppendChild (nodeLegend);
				}
				
				if (iContent is ChartTitle )
				{
					XmlNode  nodeTitle = this.ChartDoc .ImportNode (((ChartTitle)iContent).Node ,true);
					nodeChart.AppendChild (nodeTitle);
				}
				
				if (iContent is ChartPlotArea )
				{
					XmlNode  nodePlotArea = this.ChartDoc .ImportNode (((ChartPlotArea)iContent).BuildNode () ,true);
					nodeChart.AppendChild (nodePlotArea);
				}
				
				if (iContent is Table )
				{
					XmlNode  nodeTable = this.ChartDoc .ImportNode (((Table)iContent).BuildNode() ,true);
					nodeChart.AppendChild (nodeTable);
				}
				
			}

			this.CreateLocalStyleContent();
			//this.CreateCommonStyleContent();
		}