CreateNumbering
Creates an abstract multilevel numbering with a specified type.
Syntax
expression.CreateNumbering(sType);
expression - A variable that represents a ApiDocument class.
Parameters
| Name | Required/Optional | Data type | Default | Description | 
|---|---|---|---|---|
| sType | Optional | "bullet" | "numbered" | "bullet" | The type of the numbering which will be created. | 
Returns
Example
This example creates an abstract multilevel numbering with a "bullet" type.
- Code
 - Result
 
// How to add a paragraph with numbering.
// Add a text to the paragraph, make it bulleted.
let doc = Api.GetDocument();
let numbering = doc.CreateNumbering("bullet");
for (let lvl = 0; lvl < 8; ++lvl) {
	let numLvl = numbering.GetLevel(lvl);
	let paragraph = Api.CreateParagraph();
	paragraph.AddText("Default numbered lvl " + (lvl + 1));
	paragraph.SetNumbering(numLvl);
	paragraph.SetContextualSpacing(true);
	doc.Push(paragraph);
}