Word.ApplyQuickStyleSet enum
Определяет, какой экспресс-набор стилей необходимо применить к документу.
Комментарии
Используется
Примеры
// 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.");
});
Поля
| sessionStart = "SessionStart" | Восстанавливает для экспресс-стиля стиль, который использовался при открытии документа. |
| template = "Template" | Сбрасывает экспресс-стиль в соответствии с набором стилей из шаблона (если он есть). |