mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #279] How to get the default format? #225
Labels
No labels
awaiting user feedback
bug
cmake
cmake
docs
feature request
in progress
long term
medium term
medium term
pull-request
question
question
ready to close
short term
under investigation
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/libxlsxwriter#225
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @znakeeye on GitHub (Mar 30, 2020).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/279
Originally assigned to: @jmcnamara on GitHub.
In
workbook.cyou add a default format:How do you retrieve that format? E.g. I would like to change the default font for all cells, so I expected something like this:
But no such API. Ideas?
@jmcnamara commented on GitHub (Mar 30, 2020):
That font isn't exposed, deliberately, since changing it generally affects size calculations used for image insertion and other cell measurements.
If you really want to access it anyway, then you can do so via the
workbook->formatslinked list. However, things may break and I don't recommend it.@znakeeye commented on GitHub (Mar 30, 2020):
Thanks for clarification! Then I'm probably better off adding a custom format and provide that instance when writing cell values.
@jmcnamara commented on GitHub (Mar 30, 2020):
Yes. That is safer.