예제 #1
0
파일: Data.cs 프로젝트: CJdeVos/QL
 internal DataCell this[Position position]
 {
     get
     {
         if (_allCells.ContainsKey(position))
             return _allCells[position];
         return null;
     }
     set
     {
         _allCells[position] = value;
     }
 }
예제 #2
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);
        }
예제 #3
0
파일: Cell.cs 프로젝트: CJdeVos/QL
 internal Cell(WorkSheet sheet, Position position)
 {
     WorkSheet = sheet;
     Position = position;
 }