Get Started
Usage API
More information

ApiNumbering

new ApiNumbering()

Class representing the numbering properties.

Methods

Name Description
GetClassType

Get the type of this class.

GetLevel

Get the specified level of the current numbering.

Example

Copy code
builder.CreateFile("docx");
oDocument = Api.GetDocument();
oNumbering = oDocument.CreateNumbering("bullet");
for (nLvl = 0; nLvl < 8; ++nLvl) {
  oNumLvl = oNumbering.GetLevel(nLvl);
  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();

Resulting document