Uses of Class
org.aoju.bus.office.excel.StyleSet
Packages that use StyleSet
-
Uses of StyleSet in org.aoju.bus.office.excel
Methods in org.aoju.bus.office.excel that return StyleSetModifier and TypeMethodDescriptionExcelWriter.getStyleSet()获取样式集,样式集可以自定义包括:StyleSet.setAlign(org.apache.poi.ss.usermodel.HorizontalAlignment halign, org.apache.poi.ss.usermodel.VerticalAlignment valign) 设置cell文本对齐样式StyleSet.setBackgroundColor(org.apache.poi.ss.usermodel.IndexedColors backgroundColor, boolean withHeadCell) 设置单元格背景样式StyleSet.setBorder(org.apache.poi.ss.usermodel.BorderStyle borderSize, org.apache.poi.ss.usermodel.IndexedColors colorIndex) 定义所有单元格的边框类型设置全局字体StyleSet.setFont(org.apache.poi.ss.usermodel.Font font, boolean ignoreHead) 设置全局字体StyleSet.setWrapText()设置单元格文本自动换行Methods in org.aoju.bus.office.excel with parameters of type StyleSetModifier and TypeMethodDescriptionstatic voidCellKit.setCellValue(org.apache.poi.ss.usermodel.Cell cell, Object value, StyleSet styleSet, boolean isHeader, CellEditor cellEditor) 设置单元格值 根据传入的styleSet自动匹配样式 当为头部样式时默认赋值头部样式,但是头部中如果有数字、日期等类型,将按照数字、日期样式设置ExcelWriter.setStyleSet(StyleSet styleSet) 设置样式集,如果不使用样式,传入nullstatic voidRowKit.writeRow(org.apache.poi.ss.usermodel.Row row, Iterable<?> rowData, StyleSet styleSet, boolean isHeader, CellEditor cellEditor) 写一行数据