Article: https://dev.office.com/reference/add-ins/word/word-add-ins-reference-overview
Issue: Firstly, I added multiple ContentControls manually in Document. Then, I want to list all ContentControls. But, search no result.
Visual Studio 2017 Office 2016
Step1: F5 to Run in VS.
Step2: In Word, Select 'Develop' menu -> 'Insert a plain text content control'
Step3: In right task panel, click search button.
var docControls = context.document.contentControls;
docControls.load(["items"]);
return context.sync()
.then(function () {
console.log(docControls);
})
.catch(function (e) {
console.log(e);
})
