{description} {excerpt}Sets or returns a protection level for the document. Possible values are: None, TrackChanges, Comments, Forms, and ReadOnly.{excerpt} {signature:C#} public ProtectionLevel DocumentProtected{ get; set; } {signature}{signature:vb.net} Public Property DocumentProtected() As ProtectionLevel {signature} {example}{code:csharp|title=C#} //--- Get ProtectionLevel DocumentProtection.ProtectionLevel level = docProtect.DocumentProtected; //--- Set ProtectionLevel to allow editing of Forms only docProtect.DocumentProtected = DocumentProtection.ProtectionLevel.Comments; {code} {code:vb.net|title=vb.net} '--- Get ProtectionLevel Dim level As DocumentProtection.ProtectionLevel = docProtect.DocumentProtected '--- Set ProtectionLevel to allow editing of Forms only docProtect.DocumentProtected = DocumentProtection.ProtectionLevel.Comments {code} {example} |