Description |
---|
Excerpt |
---|
This class is used to get and set document protection settings for a document. |
Signature | C# | C# |
---|---|---|
Wiki Markup | ||
{description}
{excerpt}This class is used to get and set document protection settings for a document.{excerpt}
{signature:C#}
public sealed class DocumentProtection
| ||
Signature | ||
{signature}{signature:vb.net | vb.net | }
Public NotInheritable Class DocumentProtection
|
Remarks |
---|
You cannot create a DocumentProtection object using the MS Word equivalent: Tools menu > Protect Document... The following sample gets the |
Example | |||
---|---|---|---|
Code Block | | csharp | csharp |
title | C# | ||
Code Block | vb.net | title |
Properties |
---|
...
Name
...
Description
...
...
{code} {example} {properties} ||Name||Description|| |[AnnotationsLocked|DocumentProtection.AnnotationsLocked]|{excerpt-include:DocumentProtection.AnnotationsLocked |
...
|nopanel=true}| |[AutoFormatOverride|DocumentProtection.AutoFormatOverride]|{excerpt-include |
...
:DocumentProtection.AutoFormatOverride |
...
|nopanel=true}| |[DocumentProtected|DocumentProtection.DocumentProtected]|{excerpt-include |
...
:DocumentProtection.DocumentProtected |
...
|nopanel=true}| |[EnforceDocumentProtection|DocumentProtection.EnforceDocumentProtection]|{excerpt-include |
...
:DocumentProtection.EnforceDocumentProtection |
...
|nopanel=true}| |[SelectOnlyFormFields|DocumentProtection.SelectOnlyFormFields]|{excerpt-include |
...
:DocumentProtection.SelectOnlyFormFields |
...
|nopanel=true}| |[StylesLocked|DocumentProtection.StylesLocked]|{excerpt-include |
...
:DocumentProtection.StylesLocked |
...
Classes |
---|
...
Name
...
Description
...
...
|nopanel=true}|
{classes}
||Name||Description||
|[ProtectionLevel|DocumentProtection.ProtectionLevel]|{excerpt-include:DocumentProtection.ProtectionLevel|nopanel=true}|
|