Word.NumberType enum
Gibt den Typ der Zahlen in einer Liste an.
Hinweise
[ API-Satz: WordApiDesktop 1.3 ]
Beispiele
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/20-lists/format-list-range.yaml
// Counts only the level-1 (top-level) numbered paragraphs in the body range.
await Word.run(async (context) => {
const bodyRange: Word.Range = context.document.body.getRange();
const listFormat: Word.ListFormat = bodyRange.listFormat;
const options: Word.ListFormatCountNumberedItemsOptions = {
level: 1,
numberType: Word.NumberType.paragraph,
};
const count: OfficeExtension.ClientResult<number> = listFormat.countNumberedItems(options);
await context.sync();
console.log(`Level-1 item count: ${count.value}`);
});
Felder
| allNumbers = "AllNumbers" | Standardwert für alle anderen Fälle. |
| listNum = "ListNum" | Standardwert für ListNum-Felder. |
| paragraph = "Paragraph" | Vorgegebene Nummern können Sie Ansätzen hinzufügen, indem Sie im Dialogfeld Nummerierung und Aufzählungszeichen eine Vorlage auswählen. |