您好,
可以通过以下代码对每个单元格的背景进行设置
- // Specify a cell
- m_Spread.SetCol(2);
- m_Spread.SetRow(3);
- // Set cell background color
- // light gray, RGB(192, 192, 192)
- m_Spread.SetBackColor(0x00C0C0C0);
- // Define cell type as check box
- m_Spread.SetCellType(CellTypeCheckBox);
- // Define the check box text
- m_Spread.SetTypeCheckText("Completed");
- // Align text left of graphic
- m_Spread.SetTypeCheckTextAlign(TypeCheckTextAlignLeft);
- // Set the column width
- m_Spread.SetColWidth(2,10);
复制代码 |