1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-04 23:30:25 +08:00

feat: 增加SizeCs (#46)

Co-authored-by: guoqiang <guoqiang@antiy.cn>
This commit is contained in:
Rodrigo Stewart
2024-12-25 21:38:54 +08:00
committed by GitHub
parent a9fdcc5790
commit a751efdffa

View File

@@ -36,6 +36,14 @@ func (r *Run) Size(size string) *Run {
return r
}
// SizeCs allows to set run sizecs
func (r *Run) SizeCs(size string) *Run {
r.RunProperties.SizeCs = &SizeCs{
Val: size,
}
return r
}
// Shade allows to set run shade
func (r *Run) Shade(val, color, fill string) *Run {
r.RunProperties.Shade = &Shade{