示例#1
0
        public HSSFChart.HSSFSeries CloneSeries(HSSFSheet sheet, int offset)
        {
            LinkedDataRecordCollection linkedDataRecords = new LinkedDataRecordCollection();

            HSSFChart.HSSFSeries series          = this.Chart.CreateSeries();
            series.GetDataName().FormulaOfLink   = (Ptg[])this.Series.GetDataName().FormulaOfLink.Clone();
            series.GetDataValues().FormulaOfLink = (Ptg[])this.Series.GetDataValues().FormulaOfLink.Clone();
            linkedDataRecords.Add(series.GetDataName());
            linkedDataRecords.Add(series.GetDataValues());
            linkedDataRecords.Offset(offset);
            return(series);
        }