Word.EditorType enum
保護された (読み取り専用) ドキュメントの承認された部分を編集できるユーザーのクラスを表します。
注釈
使用元
例
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/35-ranges/manage-range-editing-permissions-desktop.yaml
// Grants everyone permission to edit the first paragraph when editing restrictions apply.
await Word.run(async (context) => {
const paragraphRange: Word.Range = context.document.body.paragraphs.getFirst().getRange(Word.RangeLocation.content);
const editors: Word.EditorCollection = paragraphRange.editors;
const editorType: Word.EditorType = Word.EditorType.everyone;
const editor: Word.Editor = editors.addByType(editorType);
await context.sync();
console.log("Granted Everyone permission on the summary. Get editors to verify it.");
});
フィールド
| current = "Current" | 文書の現在のユーザーを表します。 |
| editors = "Editors" | Information Rights Management を使用する文書の編集者グループを表します。 |
| everyone = "Everyone" | 文書を開くすべてのユーザーを表します。 |
| owners = "Owners" | Information Rights Management を使用する文書の所有者グループを表します。 |