From 773d4afa32a55349a7b178c4c76d182f9ed0221f Mon Sep 17 00:00:00 2001 From: xuri Date: Sun, 1 May 2022 12:28:36 +0800 Subject: This closes #1217, support update cell hyperlink Ref #1129, make `SetRowStyle` overwrite style of the cells --- rows.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'rows.go') diff --git a/rows.go b/rows.go index e0918bc..bcb8960 100644 --- a/rows.go +++ b/rows.go @@ -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 } -- cgit v1.2.1