public override Adjusted <Expr> InsertRowCols(Sheet modSheet, bool thisSheet, int R, int N, int r, bool doRows) { if (sheet == modSheet || sheet == null && thisSheet) { Adjusted <RARef> adj = raref.InsertRowCols(R, N, r, doRows); return(new Adjusted <Expr>(new CellRef(sheet, adj.e), adj.upper, adj.same)); } else { return(new Adjusted <Expr>(this)); } }
public override Adjusted <Expr> InsertRowCols(Sheet modSheet, bool thisSheet, int R, int N, int r, bool doRows) { if (sheet == modSheet || sheet == null && thisSheet) { Adjusted <RARef> ulNew = ul.InsertRowCols(R, N, r, doRows), lrNew = lr.InsertRowCols(R, N, r, doRows); int upper = Math.Min(ulNew.upper, lrNew.upper); return(new Adjusted <Expr>(new CellArea(sheet, ulNew.e, lrNew.e), upper, ulNew.same && lrNew.same)); } else { return(new Adjusted <Expr>(this)); } }