Skip to end of metadata
Go to start of metadata

Description

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.)

C#
 public DocumentProtection DocumentProtection{ get; }
vb.net
Public ReadOnly Property DocumentProtection() As DocumentProtection

Remarks

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

Examples

C#

          DocumentProtection oDocumentProtection = oDocument.DocumentProtection;
        
vb.net

          Dim oDocumentProtection As DocumentProtection = oDocument.DocumentProtection
        
  • No labels