1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-05 07:40:24 +08:00

add vMerge to table

This commit is contained in:
源文雨
2023-02-26 20:18:08 +08:00
parent e57b2b9ace
commit 89fa522280
2 changed files with 30 additions and 0 deletions

View File

@@ -41,6 +41,9 @@ func TestTableStructure(t *testing.T) {
if err != nil {
t.Fatal(err)
}
tab1.TableRows[0].TableCells[0].TableCellProperties.VMerge = &WvMerge{Val: "restart"}
tab1.TableRows[1].TableCells[0].TableCellProperties.VMerge = &WvMerge{}
tab1.TableRows[2].TableCells[0].TableCellProperties.VMerge = &WvMerge{}
r.Children[0].(*Drawing).Anchor.Graphic.GraphicData.Pic.BlipFill.Blip.AlphaModFix = &AAlphaModFix{Amount: 50000}
r.Children[0].(*Drawing).Anchor.Graphic.GraphicData.Pic.NonVisualPicProperties.CNvPicPr.Locks = &APicLocks{NoChangeAspect: 1}
r.Children[0].(*Drawing).Anchor.Graphic.GraphicData.Pic.SpPr.Xfrm.Rot = 50000