Word.ApplyQuickStyleSet enum
Gibt an, welcher Schnellformatvorlagensatz auf das Dokument angewendet werden soll.
Hinweise
Verwendet von
Beispiele
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/28-formatting/apply-quick-style-sets.yaml
// Restores the Quick Style set that was active when the document was opened.
await Word.run(async (context) => {
const document: Word.Document = context.document;
const styleSet: Word.ApplyQuickStyleSet = Word.ApplyQuickStyleSet.sessionStart;
document.applyQuickStyleSet(styleSet);
await context.sync();
console.log("Restored the Quick Style set from the start of the session.");
});
Felder
| sessionStart = "SessionStart" | Setzt die Schnellformatvorlage auf den Formatvorlagensatz zurück, der beim Öffnen des Dokuments verwendet wurde. |
| template = "Template" | Setzt die Schnellformatvorlage auf den Formatvorlagensatz aus der Vorlage (falls vorhanden) zurück. |