Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

column.SetStyle does not work with wrapped style #463

Open
Logan9312 opened this issue Feb 18, 2022 · 1 comment
Open

column.SetStyle does not work with wrapped style #463

Logan9312 opened this issue Feb 18, 2022 · 1 comment

Comments

@Logan9312
Copy link

Logan9312 commented Feb 18, 2022

When using the following function, it doesn't seem to set the cells to wrapped properly. If I use the exact same process on an individual cell it works properly. https://pkg.go.dev/gitea.com/unidoc/unioffice/spreadsheet#Column.SetStyle

Expected Behavior

When using Column.SetStyle with the wrapped style, all cells in that column should become wrapped.

An example of the issue:

style := ss.StyleSheet.AddCellStyle()
style.SetWrapped(true)
sheet.Column(1).SetStyle(style)
sheet.Column(1).SetWidth(200)
sheet.Cell("A7").SetStyle(style)

In this example, the cell A7 will be wrapped, but no other cells in the first column will be wrapped. I can verify this is the correct column because SetWidth(200) works as intended.

@github-actions
Copy link

Welcome! Thanks for posting your first issue. The way things work here is that while customer issues are prioritized,
other issues go into our backlog where they are assessed and fitted into the roadmap when suitable.
If you need to get this done, consider buying a license which also enables you to use it in your commercial products.
More information can be found on https://unidoc.io/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant