Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Description

Excerpt

Returns a DocumentProtection object that can be used to get and set the protection settings that Word will apply to this document. (Only applicable to Word 2000 or above documents.)

Signature
C#
C#
 public DocumentProtection DocumentProtection{ get; }
{signature}{signature:
}
Signature
vb.net
vb.net
Public ReadOnly Property DocumentProtection() As DocumentProtection
{signature}
{remarks}MS Word 
Remarks

MS Word equivalent:

Tools

menu

>

Protect

document...

\

(plus

some

additional

settings

\) {remarks} {example}{code:csharp|title=C#}

)

Example
Code Block
csharp
csharp
titleC#


          DocumentProtection oDocumentProtection = oDocument.DocumentProtection;
        
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}


          Dim oDocumentProtection As DocumentProtection = oDocument.DocumentProtection
        
{code} {example}