Example #1
0
        public void SetCellValue(int rowIdx, int colIdx, CellValueInfo cellValueInfo)
        {
            string key = GetRowColKey(rowIdx, colIdx);

            if (cellValueInfoDict.ContainsKey(key) == false)
            {
                cellValueInfoDict.Add(key, cellValueInfo);
            }
            else
            {
                cellValueInfoDict[key] = cellValueInfo;
            }
        }
Example #2
0
        public void SetCellStringValue(int rowIdx, int colIdx, string value, Font font, CellValueInfo.ValueProcessHandler valueProcess)
        {
            CellValueInfo cellValueInfo;

            cellValueInfo               = new CellValueInfo();
            cellValueInfo.type          = CellValueType.String;
            cellValueInfo.value         = value;
            cellValueInfo.font          = font;
            cellValueInfo.valueProcess += valueProcess;

            string key = GetRowColKey(rowIdx, colIdx);

            if (cellValueInfoDict.ContainsKey(key) == false)
            {
                cellValueInfoDict.Add(key, cellValueInfo);
            }
            else
            {
                cellValueInfoDict[key] = cellValueInfo;
            }
        }
Example #3
0
        public void AddCellChildTable(int rowIdx, int colIdx, TableEx childTable)
        {
            CellValueInfo cellValueInfo;

            cellValueInfo       = new CellValueInfo();
            cellValueInfo.type  = CellValueType.Table;
            cellValueInfo.value = childTable;

            string key = GetRowColKey(rowIdx, colIdx);

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

            childTable.parentTable       = this;
            childTable.inParentCellCoord = new CellCoord(rowIdx, colIdx);
        }
Example #4
0
        public void SetCellFixedSizeValue(int rowIdx, int colIdx, SizeF fixedSize, CellValueInfo.ValueProcessHandler valueProcess, object value = null, Font font = null)
        {
            CellValueInfo cellValueInfo;

            cellValueInfo               = new CellValueInfo();
            cellValueInfo.type          = CellValueType.FixedSize;
            cellValueInfo.fixedSize     = fixedSize;
            cellValueInfo.value         = value;
            cellValueInfo.font          = font;
            cellValueInfo.valueProcess += valueProcess;

            string key = GetRowColKey(rowIdx, colIdx);

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