docx
    Preparing search index...

    Variable DocumentProtectionTypeConst

    DocumentProtectionType: {
        COMMENTS: "comments";
        FORMS: "forms";
        READ_ONLY: "readOnly";
        TRACKED_CHANGES: "trackedChanges";
    } = ...

    What people can change in a protected document, as Word's Restrict Editing offers it.

    <xsd:simpleType name="ST_DocProtect">
    <xsd:restriction base="xsd:string">
    <xsd:enumeration value="none"/>
    <xsd:enumeration value="readOnly"/>
    <xsd:enumeration value="comments"/>
    <xsd:enumeration value="trackedChanges"/>
    <xsd:enumeration value="forms"/>
    </xsd:restriction>
    </xsd:simpleType>

    Type Declaration

    • ReadonlyCOMMENTS: "comments"

      Only comments can be added, and the editable ranges changed.

    • ReadonlyFORMS: "forms"

      Only form fields can be filled in.

    • ReadonlyREAD_ONLY: "readOnly"

      Nothing can be changed, except in the document's editable ranges (EditableRangeStart to EditableRangeEnd).

    • ReadonlyTRACKED_CHANGES: "trackedChanges"

      Anything can be changed, and every change is tracked, as a revision people can accept or reject.