diff options
author | xuri <xuri.me@gmail.com> | 2022-05-01 12:28:36 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-01 12:28:36 +0800 |
commit | 773d4afa32a55349a7b178c4c76d182f9ed0221f (patch) | |
tree | d176338fc1c550dab8201180f822dbf6dfad074d /rows.go | |
parent | 856ee57c4019b4478da0f6cb3010ae636914a6be (diff) |
This closes #1217, support update cell hyperlink
Ref #1129, make `SetRowStyle` overwrite style of the cells
Diffstat (limited to 'rows.go')
-rw-r--r-- | rows.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -841,6 +841,11 @@ func (f *File) SetRowStyle(sheet string, start, end, styleID int) error { for row := start - 1; row < end; row++ { ws.SheetData.Row[row].S = styleID ws.SheetData.Row[row].CustomFormat = true + for i := range ws.SheetData.Row[row].C { + if _, rowNum, err := CellNameToCoordinates(ws.SheetData.Row[row].C[i].R); err == nil && rowNum-1 == row { + ws.SheetData.Row[row].C[i].S = styleID + } + } } return nil } |