Creates a bullet for a paragraph with the numbering character or symbol specified with the sType parameter.
Name | Type | Description |
sType | BulletType | The numbering type the paragraphs will be numbered with. |
nStartAt | number | The number the first numbered paragraph will start with. |
builder.CreateFile("docx"); var oDocument = Api.GetDocument(); var oNumbering = oDocument.CreateNumbering("bullet"); for (let nLvl = 0; nLvl < 2; ++nLvl) { var oNumLvl = oNumbering.GetLevel(nLvl); var oParagraph = Api.CreateParagraph(); oParagraph.AddText("This is an example of the bulleted paragraph № " + (nLvl + 1)); oParagraph.SetNumbering(oNumLvl); oDocument.Push(oParagraph); } builder.SaveFile("docx", "CreateNumbering.docx"); builder.CloseFile();