Uses of Class
org.aoju.bus.office.excel.StyleSet

Packages that use StyleSet
Package
Description
POI中对Excel读写的封装
  • Uses of StyleSet in org.aoju.bus.office.excel

    Methods in org.aoju.bus.office.excel that return StyleSet
    Modifier and Type
    Method
    Description
    ExcelWriter.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(short color, short fontSize, String fontName, boolean ignoreHead)
    设置全局字体
    StyleSet.setFont(org.apache.poi.ss.usermodel.Font font, boolean ignoreHead)
    设置全局字体
    StyleSet.setWrapText()
    设置单元格文本自动换行
    Methods in org.aoju.bus.office.excel with parameters of type StyleSet
    Modifier and Type
    Method
    Description
    static void
    CellKit.setCellValue(org.apache.poi.ss.usermodel.Cell cell, Object value, StyleSet styleSet, boolean isHeader, CellEditor cellEditor)
    设置单元格值 根据传入的styleSet自动匹配样式 当为头部样式时默认赋值头部样式,但是头部中如果有数字、日期等类型,将按照数字、日期样式设置
    ExcelWriter.setStyleSet(StyleSet styleSet)
    设置样式集,如果不使用样式,传入null
    static void
    RowKit.writeRow(org.apache.poi.ss.usermodel.Row row, Iterable<?> rowData, StyleSet styleSet, boolean isHeader, CellEditor cellEditor)
    写一行数据