We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
public override void Render(SheetContext sheetContext, T dataSource)后 Cell cell = sheetContext.GetCell(location) as Cell; cell.NpoiCell.CellStyle.FillForegroundColor = HSSFColor.Red.Index; cell.NpoiCell.CellStyle.FillPattern = FillPattern.SolidForeground; 对cell设置底色,但是没设置底色的cell也跟这个设置了底色的cell一样底色了.
The text was updated successfully, but these errors were encountered:
传入workbook 进来可以实现 ICellStyle style = sheetContext.Workbook.NpoiWorkbook.CreateCellStyle(); style.Alignment = HorizontalAlignment.Right;
cell.NpoiCell.CellStyle = style;
Sorry, something went wrong.
No branches or pull requests
public override void Render(SheetContext sheetContext, T dataSource)后
Cell cell = sheetContext.GetCell(location) as Cell;
cell.NpoiCell.CellStyle.FillForegroundColor = HSSFColor.Red.Index;
cell.NpoiCell.CellStyle.FillPattern = FillPattern.SolidForeground;
对cell设置底色,但是没设置底色的cell也跟这个设置了底色的cell一样底色了.
The text was updated successfully, but these errors were encountered: