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

How to add strikethrough format for the cell #482

Closed
iwalkerr opened this issue Sep 16, 2019 · 13 comments
Closed

How to add strikethrough format for the cell #482

iwalkerr opened this issue Sep 16, 2019 · 13 comments
Labels
enhancement New feature or request

Comments

@iwalkerr
Copy link

How to delete line in excel, can god give me some guidance?

删除线

@Jeltopuz
Copy link

https://xuri.me/excelize/en/sheet.html#SetSheetRow

Remove row
func (f *File) RemoveRow(sheet string, row int) error
RemoveRow provides a function to remove a single row by given worksheet name and Excel row number. For example, remove row 3 in Sheet1:

err := f.RemoveRow("Sheet1", 3)
Use this method with caution, which will affect changes in references such as formulas, charts, and so on. If there is any referenced value of the worksheet, it will cause a file error when you open it. The excelize only partially updates these references currently.

@iwalkerr
Copy link
Author

https://xuri.me/excelize/en/sheet.html#SetSheetRow

Remove row
func (f *File) RemoveRow(sheet string, row int) error
RemoveRow provides a function to remove a single row by given worksheet name and Excel row number. For example, remove row 3 in Sheet1:

err := f.RemoveRow("Sheet1", 3)
Use this method with caution, which will affect changes in references such as formulas, charts, and so on. If there is any referenced value of the worksheet, it will cause a file error when you open it. The excelize only partially updates these references currently.

Thank you for your answer, what I want to express is, draw a line on the text, as shown in the picture

@xuri
Copy link
Member

xuri commented Sep 17, 2019

Thanks for your issue, I will add font strike style support later.

@xuri xuri added the enhancement New feature or request label Sep 17, 2019
@iwalkerr
Copy link
Author

Thanks for your issue, I will add font strike style support later.

Thank you

@xuri xuri added the in progress Working in progress label Sep 22, 2019
@xuri xuri closed this as completed in 75d66a0 Sep 23, 2019
@xuri
Copy link
Member

xuri commented Sep 23, 2019

Hi @iwalkerr, I have added font strike style support, you can set like this:

f.NewStyle(`{"font":{"strike":true}}`)

@xuri xuri removed the in progress Working in progress label Sep 23, 2019
@iwalkerr
Copy link
Author

iwalkerr commented Sep 23, 2019 via email

nullfy pushed a commit to nullfy/excelize that referenced this issue Oct 23, 2020
@heriipurnama
Copy link

How to multiple delete line/row in excel

@xuri xuri changed the title How to delete line in excel How to add strikethrough format for the cell Sep 14, 2022
@xuri
Copy link
Member

xuri commented Sep 14, 2022

The original title of this issue was ambiguous, which was related to the strikethrough style of the cell. I have updated the title for this issue. This library does not support batch removing rows or columns currently, please remove rows or columns by the RemoveRow or the RemoveCol function one by one.

@heriipurnama
Copy link

heriipurnama commented Sep 14, 2022

image
i make looping cant work multiple remove row too.

@xuri
Copy link
Member

xuri commented Sep 14, 2022

Thanks for your feedback. Which version of Excelize are you using? Can you show us a complete, standalone example program or reproducible demo?

@heriipurnama
Copy link

i using v1.4.1,

@xuri
Copy link
Member

xuri commented Sep 15, 2022

Please upgrade to the latest version or using the master branch code if you can, this issue has been fixed.

@heriipurnama
Copy link

ok i will try

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

No branches or pull requests

4 participants