Helps prevent unintentional changes to all or part of an online form or document, as specified (Protect Document option).
<documentProtection
edit="docProtectValue"
formatting="onOffType"
enforcement="onOffType"
unprotectPassword="longHexNumberType"
/>
Element type | docProtectProperty |
Namespace | http://schemas.microsoft.com/office/word/2003/wordml |
Schema name | XML Document 2003 |
Element | Description |
---|---|
docPr | Represents the document properties. |
None.
Attribute | Type | Required | Description | Possible Values |
---|---|---|---|---|
edit | docProtectValue | optional | Gets or sets editing restrictions. Helps prevent unintentional editing changes as specified. |
|
formatting | onOffType | optional | Gets or sets formatting restrictions. Prevents unintentional formatting changes except as allowed. This setting does not have an effect unless the formattingEnabled attribute is on. |
|
enforcement | onOffType | optional | Gets or sets whether the specified restrictions are currently being enforced for this document. |
|
unprotectPassword | longHexNumberType | optional | Gets or sets password key to unprotect this document from unintentional formatting/editing changes. This password is not secure. | length = 4 |
<xsd:element name="documentProtection" type="docProtectProperty" minOccurs="0" >
</xsd:element>