예제 #1
0
        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);
        }
예제 #2
0
파일: Cell.cs 프로젝트: CJdeVos/QL
 internal Cell(WorkSheet sheet, Position position)
 {
     WorkSheet = sheet;
     Position = position;
 }