Word.EditorType enum

Representa las clases de usuarios que pueden editar partes autorizadas de un documento protegido (de solo lectura).

Comentarios

Conjunto de API: WordApiDesktop 1.4

Usada por

Ejemplos

// 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.");
});

Campos

current = "Current"

Representa el usuario actual del documento.

editors = "Editors"

Representa el grupo Editores en documentos que utilizan el servicio Information Rights Management.

everyone = "Everyone"

Representa todos los usuarios que abren un documento.

owners = "Owners"

Representa el grupo Propietarios en documentos que utilizan el servicio Information Rights Management.