Word.BreakType enum
Specifies the form of a break.
Remarks
Examples
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/25-paragraph/insert-line-and-page-breaks.yaml
await Word.run(async (context) => {
context.document.body.paragraphs.getFirst().insertBreak(Word.BreakType.page, "After");
await context.sync();
console.log("success");
});
Fields
line = "Line" | Line break. |
next = "Next" | Warning: next has been deprecated. Use sectionNext instead. |
page = "Page" | Page break at the insertion point. |
sectionContinuous = "SectionContinuous" | New section without a corresponding page break. |
sectionEven = "SectionEven" | Section break with the next section beginning on the next even-numbered page. If the section break falls on an even-numbered page, Word leaves the next odd-numbered page blank. |
sectionNext = "SectionNext" | Section break on next page. |
sectionOdd = "SectionOdd" | Section break with the next section beginning on the next odd-numbered page. If the section break falls on an odd-numbered page, Word leaves the next even-numbered page blank. |
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour