Show All

# documentProtection Element

Protect Document Option: Prevents unintentional changes to all or part of an online form or document as specified.

## Syntax

    <documentProtection>
    </documentProtection>

Element Properties

Property | Value
--- | ---
Name | documentProtection
Data Type | ComplexType
Minimum Occurences | 0
Maximum Occurences | 1
Default Value | N/A
Abstract | False
Nillable | False
Element Constraints | N/A

Attributes

Attribute | Data Type | Default Value | Use | Description
--- | --- | --- | --- | ---
edit | docProtectValue |  | Optional | Editing restrictions: Prevents unintentional editing changes as specified.
formatting | onOffType |  | Optional | Formatting restrictions: Prevents unintentional formatting changes except as allowed. This setting does not have an effect unless the 'formattingEnabled' attribute is on.
enforcement | onOffType |  | None | Restrictions specified are currently being enforce for this document.
unprotectPassword | longHexNumberType |  | Optional | Password key to unprotect this document from unintentional formatting/editing changes. This password is not secure.

See Also

## Remarks

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp