public void AddReference(int rowFirst, int rowLast, int columnFirst, int columnLast) { if (rectangles.Count < ushort.MaxValue) rectangles.Add(new ExcelRectangle(rowFirst, rowLast, columnFirst, columnLast)); else throw new OverflowException("Maximum number of references exceeded"); }
public override void AddReference(int rowFirst, int rowLast, int columnFirst, int columnLast) { excelReference.AddReference(rowFirst, rowLast, columnFirst, columnLast); }