请问C1.Win.C1FlexGrid如何为固定单元格设置不同的字体?
例如:
passGrid.Cols[0].StyleFixed.Font = new Font("Meiryo UI", 12F);
passGrid.Cols[1].StyleFixed.Font = new Font("Consolas", 14.25F);
或者这样设置也是同样效果:
passGrid.GetCellRange(0, 3).Style.Font = new Font("Meiryo UI", 12F);
passGrid.GetCellRange(0, 4).Style.Font = new Font("Consolas", 14.25F);
我现在这样设置完后,所有固定单元格的字体都被设置为一样的了,和最后设置的字体一样。
只要设置的是Fixed的单元格的字体,所有Fixed单元格的字体都会被设置为一样的。 |
|