Example #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);
        }
Example #2
0
        public bool Contains(HSSFSheet seriesSheet, HSSFChart.HSSFSeries series)
        {
            LinkedDataRecordCollection linkedDataRecords = new LinkedDataRecordCollection();

            linkedDataRecords.Add(series.GetDataValues());

            if (!linkedDataRecords.InRange(seriesSheet, this.Grid.Sheet, this.StartRow, this.StartRow + this.Grid.BlockRowCount - 1))
            {
                return(false);
            }

            return(true);
        }