for (int i = 1; i < RowHeaderColCount; i++)
{
newsheet.ColumnHeader.Rows.ForeColor = Color.Black;
newsheet.ColumnHeader.Rows.Font.Bold = true;
newsheet.ColumnHeader.DefaultStyle.BackColor = Color.Red;
newsheet.ColumnHeader.Rows.BackColor = Color.Red;
newsheet.ColumnHeader.Rows.HorizontalAlign = HorizontalAlign.Center;
// newsheet.ColumnHeader.Rows.Locked = true;
}
遍历行头部分的每一行,设置样式;file:///D:/Users/LontTop/Desktop/新建位图图像.bmp
设置样式不管用 |
|