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:
10
apitable.go
10
apitable.go
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user