fix 章、条(一到五),无题(一到五)左缩进为0,字母列项左/悬挂缩进0.74,数字列项左缩进1.48,悬挂缩进0.74
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user