summaryrefslogtreecommitdiff
path: root/rows.go
diff options
context:
space:
mode:
Diffstat (limited to 'rows.go')
-rw-r--r--rows.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/rows.go b/rows.go
index 5b21f29..bfea398 100644
--- a/rows.go
+++ b/rows.go
@@ -772,6 +772,13 @@ func checkRow(ws *xlsxWorksheet) error {
return nil
}
+// hasAttr determine if row non-default attributes.
+func (r *xlsxRow) hasAttr() bool {
+ return r.Spans != "" || r.S != 0 || r.CustomFormat || r.Ht != 0 ||
+ r.Hidden || r.CustomHeight || r.OutlineLevel != 0 || r.Collapsed ||
+ r.ThickTop || r.ThickBot || r.Ph
+}
+
// SetRowStyle provides a function to set the style of rows by given worksheet
// name, row range, and style ID. Note that this will overwrite the existing
// styles for the rows, it won't append or merge style with existing styles.