Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 608 Bytes

section.md

File metadata and controls

29 lines (19 loc) · 608 Bytes

Section

Content to be added, here is a relevant sample!

Syntax

//get paragraphs from section...

var ctx = new Word.WordClientContext();
ctx.customData = OfficeExtension.Constants.iterativeExecutor;

var paras = ctx.document.sections.getItemAt(0).body.paragraphs;
ctx.load(paras);

ctx.executeAsync().then(
    function () {
        console.log("Number of paragraphs in section: " + paras.count);
    },
    function (result) {
        console.log("Failed: ErrorCode=" + result.errorCode + ", ErrorMessage=" + result.errorMessage);
        console.log(result.traceMessages);
    }
);