Next, grab the RichTextString from the Cell and call the applyFont overload that takes a range of indexes and the Font to apply.RichTextString rts = cell.getRichStringCellValue();rts.applyFont(0, 8, font);如果要将工作簿中的其他文本转换为粗体,应重新使用Font对象.You should reuse the Font object if you want to convert other text in the workbook to bold. 这篇关于如何使用Apache POI将粗体文本样式应用于单元格中的一系列文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-27 16:33