Word.DocumentProtectOptions interface
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Provides configuration options for the Document.protect method.
Remarks
Properties
| enforce |
If provided, specifies whether to enforce style lock restrictions. The default value is |
| no |
If provided, specifies whether to reset form fields when protecting the document. The default value is |
| password | If provided, specifies the password to apply for document protection. The default value is an empty string. |
| use |
If provided, specifies whether to use Information Rights Management (IRM). The default value is |
Property Details
enforceStyleLock
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
If provided, specifies whether to enforce style lock restrictions. The default value is false.
enforceStyleLock?: boolean;
Property Value
boolean
Remarks
noReset
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
If provided, specifies whether to reset form fields when protecting the document. The default value is false.
noReset?: boolean;
Property Value
boolean
Remarks
password
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
If provided, specifies the password to apply for document protection. The default value is an empty string.
password?: string;
Property Value
string
Remarks
useInformationRightsManagement
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
If provided, specifies whether to use Information Rights Management (IRM). The default value is false.
useInformationRightsManagement?: boolean;
Property Value
boolean