Example #1
0
        public void SetCellFixedSizeValue(int rowIdx, int colIdx, SizeF fixedSize)
        {
            TableCellData cellData;

            cellData           = new TableCellData();
            cellData.type      = TableCellDataType.FixedSize;
            cellData.fixedSize = fixedSize;

            int key = GetRowColKey(rowIdx, colIdx);

            if (cellValueInfoDict.ContainsKey(key) == false)
            {
                cellValueInfoDict.Add(key, cellData);
            }
            else
            {
                cellValueInfoDict[key] = cellData;
            }
        }
Example #2
0
        public void AddCellChildTable(int rowIdx, int colIdx, Table childTable)
        {
            TableCellData cellData;

            cellData        = new TableCellData();
            cellData.type   = TableCellDataType.Table;
            cellData.data   = childTable;
            cellData.rowIdx = rowIdx;
            cellData.colIdx = colIdx;

            int key = GetRowColKey(rowIdx, colIdx);

            if (cellValueInfoDict.ContainsKey(key) == false)
            {
                cellValueInfoDict.Add(key, cellData);
            }
            else
            {
                cellValueInfoDict[key] = cellData;
            }

            childTable.parentTable       = this;
            childTable.inParentCellCoord = new CellCoord(rowIdx, colIdx);
        }