ClosedXML:remove/change 交替行颜色?
ClosedXML: remove/change alternating row color?
到目前为止,这是我的代码 (VB):
Dim wb As New ClosedXML.Excel.XLWorkbook()
wb.Worksheets.Add(dTable, "export")
wb.SaveAs(location)
如何删除交替行的样式(默认为浅蓝色)
假设您想跳过 header 行,这样的事情应该在保存之前起作用。
For i As Integer = 2 To wb.Worksheets.Worksheet("export").Rows.Count
wb.Worksheets.Worksheet("export").Row(i).Style.Fill.SetBackgroundColor(XLColor.White)
Next
到目前为止,这是我的代码 (VB):
Dim wb As New ClosedXML.Excel.XLWorkbook()
wb.Worksheets.Add(dTable, "export")
wb.SaveAs(location)
如何删除交替行的样式(默认为浅蓝色)
假设您想跳过 header 行,这样的事情应该在保存之前起作用。
For i As Integer = 2 To wb.Worksheets.Worksheet("export").Rows.Count
wb.Worksheets.Worksheet("export").Row(i).Style.Fill.SetBackgroundColor(XLColor.White)
Next