@@ -54,3 +54,78 @@ Number conversion, using `String` to receive data in spreadsheet number format w
5454### ` @ColumnWidth `
5555
5656Specifies the column width.
57+
58+ ### ` @HeadRowHeight ` & ` @ContentRowHeight `
59+
60+ Specifies the height of the header rows (` @HeadRowHeight ` ) or the content rows (` @ContentRowHeight ` ). The
61+ parameters are as follows:
62+
63+ | Name | Default Value | Description |
64+ | -------| ---------------| ----------------------------------------------------------|
65+ | value | -1 | Set the height. ` -1 ` indicates automatic height setting. |
66+
67+ ### ` @HeadFontStyle ` & ` @ContentFontStyle `
68+
69+ Customizes the font style for headers (` @HeadFontStyle ` ) or content data (` @ContentFontStyle ` ). The
70+ parameters are as follows:
71+
72+ | Name | Default Value | Description |
73+ | --------------------| ---------------------| ------------------------------------------------------------------------------------------------------------------------------------------------------|
74+ | fontName | Empty | The name for the font (e.g., "Arial"). |
75+ | fontHeightInPoints | -1 | Set font height. |
76+ | italic | BooleanEnum.DEFAULT | Whether to use italics. |
77+ | strikeout | BooleanEnum.DEFAULT | Whether to use a strikeout horizontal line through the text. |
78+ | color | -1 | The color for the font. (See ` org.apache.poi.ss.usermodel.IndexedColors ` or ` org.apache.poi.ss.usermodel.Font ` , e.g., ` Font.COLOR_NORMAL ` ). |
79+ | typeOffset | -1 | Set the font type offset to normal, super, or subscript (See ` org.apache.poi.ss.usermodel.Font ` , e.g., ` Font.SS_NONE ` ). |
80+ | underline | -1 | Set type of text underlining (See ` org.apache.poi.ss.usermodel.Font ` , e.g., ` Font.U_SINGLE ` ). |
81+ | charset | -1 | Set character-set to use (See ` org.apache.poi.common.usermodel.fonts.FontCharset ` or ` org.apache.poi.ss.usermodel.Font ` , e.g., ` Font.ANSI_CHARSET ` ). |
82+ | bold | BooleanEnum.DEFAULT | Whether to apply bold style. |
83+
84+ ### ` @HeadStyle ` & ` @ContentStyle `
85+
86+ Customizes the cell style (borders, alignment, colors...) for header data (` @HeadStyle ` ) or content data (` @ContentStyle ` ).
87+ The parameters are as follows:
88+
89+ | Name | Default Value | Description |
90+ | ---------------------| ---------------------------------| -------------------------------------------------------------------------------------------------------|
91+ | dataFormat | -1 | Set the data format (must be a valid format defined at ` org.apache.poi.ss.usermodel.BuiltinFormats ` ). |
92+ | hidden | BooleanEnum.DEFAULT | set the cell to be hidden. ** Note: This only takes effect if the sheet is protected.** |
93+ | locked | BooleanEnum.DEFAULT | Set the cell to be locked. ** Note: This only takes effect if the sheet is protected.** |
94+ | quotePrefix | BooleanEnum.DEFAULT | Turn on/off "Quote Prefix" (treats numeric/formula as text). |
95+ | horizontalAlignment | HorizontalAlignmentEnum.DEFAULT | Set the horizontal alignment. |
96+ | wrapped | BooleanEnum.DEFAULT | Set whether the text should be wrapped within the cell. |
97+ | verticalAlignment | VerticalAlignmentEnum.DEFAULT | Set the vertical alignment. |
98+ | rotation | -1 | Set the degree of rotation for the text. |
99+ | indent | -1 | Set the number of spaces to indent the text. |
100+ | borderLeft | BorderStyleEnum.DEFAULT | Set the border style for the left border. |
101+ | borderRight | BorderStyleEnum.DEFAULT | Set the border style for the right border. |
102+ | borderTop | BorderStyleEnum.DEFAULT | Set the border style for the top border. |
103+ | borderBottom | BorderStyleEnum.DEFAULT | Set the border style for the bottom border. |
104+ | leftBorderColor | -1 | Set the color for the left border (See ` org.apache.poi.ss.usermodel.IndexedColors ` ). |
105+ | rightBorderColor | -1 | Set the color for the right border (See ` org.apache.poi.ss.usermodel.IndexedColors ` ). |
106+ | topBorderColor | -1 | Set the color for the top border (See ` org.apache.poi.ss.usermodel.IndexedColors ` ). |
107+ | bottomBorderColor | -1 | Set the color for the bottom border (See ` org.apache.poi.ss.usermodel.IndexedColors ` ). |
108+ | fillPatternType | FillPatternTypeEnum.DEFAULT | Set the fill pattern |
109+ | fillBackgroundColor | -1 | Set the background fill color. |
110+ | fillForegroundColor | -1 | Set the foreground fill color. ** Note: Ensure Foreground color is set prior to background color.** |
111+ | shrinkToFit | BooleanEnum.DEFAULT | Controls if the Cell should be auto-sized to shrink to fit if text is too long. |
112+
113+ ### ` @ContentLoopMerge `
114+
115+ Defines a loop merge strategy for content cells. The parameters are as follows:
116+
117+ | Name | Default Value | Description |
118+ | --------------| ---------------| ---------------------------------------------------|
119+ | eachRow | 1 | The number of rows to include in each merge loop. |
120+ | columnExtend | 1 | The number of columns to extend the merge. |
121+
122+ ### ` @OnceAbsoluteMerge `
123+
124+ Defines a one-time absolute merge region. The parameters are as follows:
125+
126+ | Name | Default Value | Description |
127+ | ------------------| ---------------| ----------------------------------------------|
128+ | firstRowIndex | -1 | The index of the first row to merge. |
129+ | lastRowIndex | -1 | The index of the last row to merge. |
130+ | firstColumnIndex | -1 | The index of the first column to merge. |
131+ | lastColumnIndex | -1 | The index of the last column to merge. |
0 commit comments