public DataCellNavigator(WorkSheet sheet, Position start, Position end) { Sheet = sheet; int yStart = Math.Min(start.Row, end.Row); int yEnd = Math.Abs(start.Row - end.Row) + yStart; int xStart = Math.Min(start.Column, end.Column); int xEnd = Math.Abs(start.Column - end.Column) + xStart; Start = new Position(yStart, xStart); End = new Position(yEnd, xEnd); }
internal Cell(WorkSheet sheet, Position position) { WorkSheet = sheet; Position = position; }