summaryrefslogtreecommitdiff
path: root/col.go
diff options
context:
space:
mode:
Diffstat (limited to 'col.go')
-rw-r--r--col.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/col.go b/col.go
index 91ca3da..5171f34 100644
--- a/col.go
+++ b/col.go
@@ -435,6 +435,13 @@ func (f *File) SetColStyle(sheet, columns string, styleID int) error {
fc.Width = c.Width
return fc
})
+ if rows := len(ws.SheetData.Row); rows > 0 {
+ for col := start; col <= end; col++ {
+ from, _ := CoordinatesToCellName(col, 1)
+ to, _ := CoordinatesToCellName(col, rows)
+ f.SetCellStyle(sheet, from, to, styleID)
+ }
+ }
return nil
}