Aspose.Cells.Style rowBg2 = wb.Styles[wb.Styles.Add()];
rowBg2.Borders[BorderType.TopBorder].LineStyle = CellBorderType.Thin;
rowBg2.Borders[BorderType.BottomBorder].LineStyle = CellBorderType.Thin;
rowBg2.Borders[BorderType.LeftBorder].LineStyle = CellBorderType.Thin;
rowBg2.Borders[BorderType.RightBorder].LineStyle = CellBorderType.Thin;
rowBg2.ForegroundColor = System.Drawing.Color.SpringGreen;
rowBg2.Pattern = BackgroundType.Solid;.
Aspose.Cells.Range range1 = cells.CreateRange(0, 0, 1, 11);
range1.ApplyStyle(rowBg2, new StyleFlag() { All = true });
Aspose.Cells设置单元格背景色
最新推荐文章于 2023-05-09 14:44:52 发布