Skip to content

Commit 2c95ec3

Browse files
committed
Document Styling Whole Columns and Rows
Fix #4285. Documentation change only - no changed code. It is not clear to me why using individual set options when styling an entire column works differently than applyFromArray, but the latter produces the expected result and the former doesn't. I will continue to research why. However, in the meantime, we can at least document that applyFromArray is preferred for this operation.
1 parent 2297dba commit 2c95ec3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/topics/recipes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -925,6 +925,8 @@ getStyle('A1:M500'), rather than styling the cells individually in a
925925
loop. This is much faster compared to looping through cells and styling
926926
them individually.
927927

928+
**Tip** If you are styling entire row(s) or column(s), e.g. getStyle('A:A'), it is recommended to use applyFromArray as described below rather than setting the styles individually as described above.
929+
928930
There is also an alternative manner to set styles. The following code
929931
sets a cell's style to font bold, alignment right, top border thin and a
930932
gradient fill:

0 commit comments

Comments
 (0)