fix 章、条(一到五),无题(一到五)左缩进为0,字母列项左/悬挂缩进0.74,数字列项左缩进1.48,悬挂缩进0.74

This commit is contained in:
赵霄
2023-09-06 14:27:32 +08:00
parent dffe84dd79
commit b387486965
3 changed files with 28 additions and 26 deletions
@@ -173,6 +173,7 @@
var oParaPr = numbering.GetParaPr();
oParaPr.SetSpacingLine(290, "auto");
oParaPr.SetJc("tab");
oParaPr.SetIndFirstLine(-420);
// oParaPr.SetIndFirstLine(0);
oParagraph.SetNumbering(numbering)
oParagraph.SetContextualSpacing(true)
@@ -237,13 +238,14 @@
// oParaPr.SetIndLeft(1310)
oParaPr.SetJc("left");
oParaPr.SetSpacingLine(290, "auto");
oParaPr.SetIndFirstLine(-420);
const oParagraph = Api.CreateParagraph()
oParagraph.SetNumbering(numbering)
oParagraph.SetContextualSpacing(true)
oParagraph.SetFontFamily('宋体')
oParagraph.SetSpacingBefore(2)
oParagraph.SetFontSize(21)
oParagraph.SetIndLeft(1270);
oParagraph.SetIndLeft(1260);
oParagraph.SetHighlight(255, 255, 0);
oDocument.InsertContent([oParagraph])
let text = oParagraph.GetText()