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; } }
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; } }
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); }
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; } }