stuart
stuart

Reputation: 1

Numbering Paragraphs using office-js in word

I'm trying to get all the paragraphs in a document,

var paragraphs = context.document.body.paragraphs;
context.load(paragraphs);

Once you have them how do you apply a custom paragraph numbering? setlevelNumbering seems to possibly be the way but all i get is a bullet point.

Any examples out there ?

Thx

Upvotes: 0

Views: 832

Answers (1)

Rick Kirkham
Rick Kirkham

Reputation: 9754

This sample add-in uses setLevelNumbering (see line 321 and 409): Word Add-in MarkdownConversion.

Upvotes: 0

Related Questions