Skip to end of metadata
Go to start of metadata

Description

Sets or returns a protection level for the document. Possible values are: None, TrackChanges, Comments, Forms, and ReadOnly.
C#
public ProtectionLevel DocumentProtected{ get; set; }
vb.net
Public Property DocumentProtected() As ProtectionLevel

Examples

 
C#
          //--- Get ProtectionLevel
          DocumentProtection.ProtectionLevel level = docProtect.DocumentProtected;

          //--- Set ProtectionLevel to allow editing of Forms only
          docProtect.DocumentProtected = DocumentProtection.ProtectionLevel.Comments;
        
vb.net
          '--- Get ProtectionLevel
          Dim level As DocumentProtection.ProtectionLevel = docProtect.DocumentProtected

          '--- Set ProtectionLevel to allow editing of Forms only
          docProtect.DocumentProtected = DocumentProtection.ProtectionLevel.Comments
        

Examples

 
  • No labels