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); }