public static Chart CreateChart(Table table,ChartTypes type,string CellRange) { Chart chart = new Chart (table,"ch1"); chart.ChartType = type.ToString (); chart.CreateFromCellRange (CellRange); return chart; }
public ChartDomain(Chart chart) { this.Chart =chart; this.Document =chart.Document; this.NewXmlNode (null); }
/// <summary> /// Initializes a new instance of the charttitle class. /// </summary> /// <param name="table">The table.</param> public ChartTitle(Chart chart) { this.Chart = chart; this.Document = chart.Document; this.NewXmlNode(null); this.InitStandards(); this.TitleStyle = new TitleStyle (chart.Document ,null); this.Chart .Styles .Add (this.TitleStyle ); //chart.Content .Add (this); }
/// <summary> /// the constructor of the chartStyleProcesser /// </summary> /// <param name="chart"></param> public ChartStyleProcessor(Chart chart) { this.Chart =chart; }
/// <summary> /// create the chart /// </summary> /// <param name="ParentNode"></param> /// <param name="ObjectRealPath"></param> /// <returns></returns> public Chart CreateChart(XmlNode ParentNode, string ObjectRealPath,string ObjectName) { Chart chart = new Chart (this._document ,null,ParentNode); chart.ObjectType = "chart"; chart.ObjectName = ObjectName; chart.ObjectRealPath = ObjectRealPath; ChartImporter chartimporter = new ChartImporter (chart); chartimporter.Import (); return chart; }
/// <summary> /// the constructor of the ChartImporter /// </summary> /// <param name="chart"></param> public ChartImporter(Chart chart) { this.Chart =chart; }
public ChartLegend(Chart chart) { this.Chart =chart; this.Document =chart.Document; this.NewXmlNode (null); this.LegendStyle = new LegendStyle (chart.Document); chart.Content .Add (this); }
/// <summary> /// Initializes a new instance of the ChartAxis class. /// </summary> /// <param name="table">The table.</param> /// <param name="styleName">The style name.</param> public ChartAxis(Chart chart, string styleName) { this.Chart = chart; this.Document = chart.Document; this.NewXmlNode(styleName); if (styleName != null) { this.StyleName = styleName; this.AxesStyle = new AxesStyle(this.Document, styleName); this.Chart.Styles.Add(this.AxesStyle); } this.InitStandards(); }
public ChartStyles(Chart chart) { this.Chart = chart; this.Styles = new XmlDocument (); }
public ChartCategories(Chart chart) { this.Chart =chart; this.Document =chart.Document; this.NewXmlNode (null); }
public ChartCategories(Chart chart, string styleName) { this.Chart =chart; this.Document =chart.Document; this.NewXmlNode (styleName); }
public ChartWall(Chart chart,string styleName) { this.Chart =chart; this.Document =chart.Document; this.NewXmlNode (styleName); if (styleName!=null) { this.StyleName =styleName; this.WallStyle = new WallStyle (chart.Document ,styleName); this.Chart .Styles .Add (this.WallStyle ); } this.Chart .Content .Add (this); }
public ChartWall(Chart chart) { this.Chart =chart; this.Document =chart.Document; this.NewXmlNode (null); this.WallStyle = new WallStyle (chart.Document); this.Chart .Styles .Add (this.WallStyle ); this.Chart.Content.Add (this); }
/// <summary> /// Initializes a new instance of the ChartPlotArea class. /// </summary> /// <param name="table">The table.</param> /// <param name="styleName">The style name.</param> public ChartSeries(Chart chart, string styleName) { this.Chart = chart; this.Document = chart.Document; this.NewXmlNode(styleName); this.InitStandards(); this.DataPointCollection = new DataPointCollection (); if (styleName != null) { this.StyleName = styleName; this.SeriesStyle = new SeriesStyle(this.Document, styleName); this.Chart.Styles.Add(this.SeriesStyle); } }
/// <summary> /// Initializes a new instance of the ChartPlotArea class. /// This will create an empty cell that use the default cell style /// </summary> /// <param name="table">The table.</param> public ChartSeries(Chart chart) { this.Chart = chart; this.Document = chart.Document; this.DataPointCollection =new DataPointCollection (); this.NewXmlNode(null); this.SeriesStyle =new SeriesStyle (this.Document); this.Chart .Styles .Add (SeriesStyle); this.InitStandards(); }
/// <summary> /// the constructor of the dr3dlight /// </summary> /// <param name="chart"></param> public Dr3dLight(Chart chart) { this.Chart =chart; this.NewXmlNode (); }
/// <summary> /// Initializes a new instance of the charttitle class. /// </summary> /// <param name="table">The table.</param> /// <param name="styleName">The style name.</param> public ChartTitle(Chart chart, string styleName) { this.Chart = chart; this.Document = chart.Document; this.NewXmlNode(styleName); this.InitStandards(); if (styleName != null) { this.StyleName = styleName; this.TitleStyle = new TitleStyle(this.Document, styleName); this.Chart.Styles.Add(this.TitleStyle); } //chart.Content .Add (this); }
public static ChartAxis CreateAxis(Chart chart,string Dimention, string name) { ChartAxis axis = new ChartAxis (chart,"ch"+Dimention); axis.Dimension = Dimention; axis.AxisName = name; return axis; }
/// <summary> /// Initializes a new instance of the chartaxis class. /// </summary> /// <param name="chart">The chart.</param> public ChartAxis(Chart chart) { this.Chart = chart; this.Document = chart.Document; this.NewXmlNode(null); this.AxesStyle = new AxesStyle (chart.Document); this.Chart .Styles .Add (this.AxesStyle); this.InitStandards(); if (this.AxesStyle .AxesProperties.DisplayLabel==null) this.AxesStyle .AxesProperties.DisplayLabel ="true"; }
public ChartPlotArea(Chart chart) { this.Chart = chart; this.Document = chart.Document; this.NewXmlNode(null); this.InitStandards(); this.PlotAreaStyle = new PlotAreaStyle (chart.Document); chart.Styles .Add (this.PlotAreaStyle ); this.InitPlotArea (); chart.Content .Add (this); }
public void InsertChartAt(string cellName,Chart chart) { string endCell= chart.EndCellAddress ; if (endCell==null) { int CurRowIndex= chart.GetCellPos (cellName,this).rowIndex ; int CurColIndex= chart.GetCellPos (cellName,this).columnIndex ; int EndRowIndex = CurRowIndex +15; int EndColIndex = CurColIndex +5; string EndCellRow =EndRowIndex.ToString (); string EndCellCol = null; if (EndColIndex<=26) { char col = (char)(EndColIndex+'A'-1); EndCellCol=col.ToString (); } else if (CurColIndex>26&&CurColIndex<=260) { int FirstCha = CurColIndex/26; char FirstCharacter = (char)(FirstCha+'A'-1); int SecondCha =CurColIndex%2 ; char SecondChatacter = (char)(SecondCha+'A'-1); EndCellCol=FirstCharacter.ToString ()+SecondChatacter.ToString (); } endCell = this.TableName +"."+EndCellCol+EndCellRow; chart.EndCellAddress =endCell; } Cell cell = (chart.GetCellPos (cellName,this)).cell ; cell.Content .Add (chart.Frame ); }
public ChartGrid(Chart chart) { this.Chart =chart; this.NewXmlNode (null); this.Document =chart.Document; }
/// <summary> /// Initializes a new instance of the ChartPlotArea class. /// This will create an empty cell that use the default cell style /// </summary> /// <param name="table">The table.</param> public ChartDataPoint(Chart chart) { this.Chart = chart; this.Document = chart.Document; this.NewXmlNode(null); this.DataPointStyle = new DataPointStyle (chart.Document); this.Chart .Styles .Add (this.DataPointStyle ); //this.InitStandards(); }
public ChartLegend(Chart chart,string styleName) { this.Chart =chart; this.Document =chart.Document; this.NewXmlNode (styleName); this.LegendStyle = new LegendStyle (this.Document,styleName); this.Chart .Styles .Add (this.LegendStyle ); chart.Content .Add (this); }
/// <summary> /// Initializes a new instance of the ChartPlotArea class. /// </summary> /// <param name="table">The table.</param> /// <param name="styleName">The style name.</param> public ChartPlotArea(Chart chart, string styleName) { this.Chart = chart; this.Document = chart.Document; this.NewXmlNode(styleName); this.InitStandards(); if (styleName != null) { this.StyleName = styleName; this.PlotAreaStyle = new PlotAreaStyle (chart.Document,styleName); chart.Styles .Add (this.PlotAreaStyle ); } this.InitPlotArea (); chart.Content .Add (this); }
public ChartDataPoint(Chart chart, string styleName) { this.Chart = chart; this.Document = chart.Document; this.NewXmlNode(styleName); //this.InitStandards(); if (styleName != null) { this.StyleName = styleName; this.DataPointStyle = new DataPointStyle(this.Document, styleName); this.Chart.Styles.Add(this.DataPointStyle); } }
public ChartGrid(Chart chart,string styleName) { this.Chart =chart; this.Document =chart.Document; this.NewXmlNode (styleName); }
/// <summary> /// Initializes a new instance of the ChartPlotArea class. /// This will create an empty cell that use the default cell style /// </summary> /// <param name="table">The table.</param> public ChartFloor(Chart chart) { this.Chart = chart; this.Document = chart.Document; this.NewXmlNode(null); this.FloorStyle = new FloorStyle (chart.Document); this.Chart .Styles .Add (this.FloorStyle ); //this.InitStandards(); }