1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-09 17:50:27 +08:00

feat: add shade effect

This commit is contained in:
源文雨
2023-02-26 15:01:17 +08:00
parent 592c7b5d13
commit 0e18f8a163
11 changed files with 154 additions and 80 deletions

View File

@@ -158,3 +158,13 @@ func (w *WTableRow) Justification(val string) *WTableRow {
w.TableRowProperties.Justification.Val = val
return w
}
// Shade allows to set cell's shade
func (c *WTableCell) Shade(val, color, fill string) *WTableCell {
c.TableCellProperties.Shade = &Shade{
Val: val,
Color: color,
Fill: fill,
}
return c
}