void CreateColumnNameRow(TableEx table, string[] columnNames, Font font, CellValueInfo.ValueProcessHandler process) { List <CellValueInfo> cellValueInfoList = new List <CellValueInfo>(); CellValueInfo cellInfo; for (int i = 0; i < table.colAmount; i++) { cellInfo = new CellValueInfo(); cellInfo.type = CellValueType.String; cellInfo.valueProcess += process; cellInfo.value = columnNames[i]; cellInfo.font = font; cellValueInfoList.Add(cellInfo); } table.CreateNewAutoRow(cellValueInfoList.ToArray()); }
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; } }
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; } }