Skip to main content

GetParaPr

Returns the paragraph properties which are applied to any numbered paragraph that references the given numbering definition and numbering level.

Syntax

expression.GetParaPr();

expression - A variable that represents a ApiNumberingLevel class.

Parameters

This method doesn't have any parameters.

Returns

ApiParaPr

Example

Get the paragraph properties which are applied to any numbered paragraph that references the given numbering definition and numbering level in a document.

// How to retrieve the paragraph properties in a document.

// Get the properties of the paragraph of the numbering in a document.

let doc = Api.GetDocument();
let numbering = doc.CreateNumbering("numbered");
let numLvl = numbering.GetLevel(0);
let paraPr = numLvl.GetParaPr();
paraPr.SetSpacingLine(480, "auto");
paraPr.SetJc("both");
paraPr.SetIndFirstLine(720);
let paragraph = doc.GetElement(0);
paragraph.SetNumbering(numLvl);
paragraph.AddText("This is the first element of a parent numbered list which starts with '1'");
paragraph = Api.CreateParagraph();
paragraph.AddText("This is the second element of a parent numbered list which starts with '2'");
paragraph.SetNumbering(numLvl);
doc.Push(paragraph);