Word.ApplyQuickStyleSet enum
Especifica qual conjunto de Estilo Rápido deve ser aplicado ao documento.
Comentários
Conjunto de APIs: WordApiDesktop 1.4
Usada por
Exemplos
// 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.");
});
Campos
| sessionStart = "SessionStart" | Redefine o Estilo Rápido como o conjunto de estilos em uso quando o documento foi aberto. |
| template = "Template" | Redefine o conjunto de estilos rápidos como o estilo definido no modelo, se houver. |