public RangeCreator CreateRanges() { var grid = new Grid(); grid.Redim(RowCount, ColCount); SpannedRangesList = new SpannedRangesList(); for (int r = 0; r < RowCount; r++) for (int c = 0; c < ColCount; c++) { if (c + Span < ColCount) { SpannedRangesList.Add(new Range(r, c, r, c + Span)); c += Span; } } return this; }
public RangeCreator CreateRanges() { var grid = new Grid(); grid.Redim(RowCount, ColCount); SpannedRangesList = new SpannedRangesList(); for (int r = 0; r < RowCount; r++) { for (int c = 0; c < ColCount; c++) { if (c + Span < ColCount) { SpannedRangesList.Add(new Range(r, c, r, c + Span)); c += Span; } } } return(this); }
public SpannedCellRangesController(Grid grid) { this.m_grid = grid; SpannedRangesCollection = new SpannedRangesList(); }