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
vb.net
vb.net
Public ReadOnly Property DocumentProtection() As DocumentProtection
Remarks

MS Word equivalent: Tools menu > Protect document... (plus some additional settings)

Example
Code Block
csharp
csharp
titleC#

          DocumentProtection oDocumentProtection = oDocument.DocumentProtection;
        
Code Block
vb.net
vb.net
titlevb.net

          Dim oDocumentProtection As DocumentProtection = oDocument.DocumentProtection