Class representing the numbering properties.
Name | Description |
GetClassType | Returns a type of the ApiNumbering class. |
GetLevel | Returns the specified level of the current numbering. |
ToJSON | Converts the ApiNumbering object into the JSON object. |
builder.CreateFile("docx"); var oDocument = Api.GetDocument(); var oNumbering = oDocument.CreateNumbering("bullet"); for (let nLvl = 0; nLvl < 8; ++nLvl) { var oNumLvl = oNumbering.GetLevel(nLvl); var oParagraph = Api.CreateParagraph(); oParagraph.AddText("Default bullet lvl " + (nLvl + 1)); oParagraph.SetNumbering(oNumLvl); oParagraph.SetContextualSpacing(true); oDocument.Push(oParagraph); } builder.SaveFile("docx", "ApiNumbering.docx"); builder.CloseFile();