fix 列项修改为宋体,段前段后0个字符

This commit is contained in:
赵霄
2023-09-19 17:45:36 +08:00
parent 6d9e147f2d
commit 2f2857e5da
@@ -169,16 +169,15 @@
const oParagraph = Api.CreateParagraph()
// oParagraph.SetSpacingLine(400, "auto");
let oTextPr = numbering.GetTextPr();
oTextPr.SetFontFamily("体");
oTextPr.SetFontFamily("体");
var oParaPr = numbering.GetParaPr();
oParaPr.SetSpacingLine(290, "auto");
oParaPr.SetSpacingLine(240, "auto");
oParaPr.SetJc("tab");
oParaPr.SetIndFirstLine(-420);
// oParaPr.SetIndFirstLine(0);
oParagraph.SetNumbering(numbering)
oParagraph.SetContextualSpacing(true)
oParagraph.SetFontFamily('宋体')
oParagraph.SetSpacingBefore(1)
oParagraph.SetIndLeft(840);
oParagraph.SetFontSize(21)
oParagraph.SetHighlight(255, 255, 0);
@@ -233,17 +232,16 @@
}
}
let oTextPr = numbering.GetTextPr();
oTextPr.SetFontFamily("体");
oTextPr.SetFontFamily("体");
const oParaPr = numbering.GetParaPr();
// oParaPr.SetIndLeft(1310)
oParaPr.SetJc("left");
oParaPr.SetSpacingLine(290, "auto");
oParaPr.SetSpacingLine(240, "auto");
oParaPr.SetIndFirstLine(-420);
const oParagraph = Api.CreateParagraph()
oParagraph.SetNumbering(numbering)
oParagraph.SetContextualSpacing(true)
oParagraph.SetFontFamily('宋体')
oParagraph.SetSpacingBefore(2)
oParagraph.SetFontSize(21)
oParagraph.SetIndLeft(1260);
oParagraph.SetHighlight(255, 255, 0);