Sets or returns a protection level for the document. Possible values are: None, TrackChanges, Comments, Forms, and ReadOnly. |
<table class="wysiwyg-macro" data-macro-name="unmigrated-wiki-markup" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e3VubWlncmF0ZWQtd2lraS1tYXJrdXB9&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre> public ProtectionLevel DocumentProtected{ get; set; } </pre></td></tr></table> |
<p>Public Property DocumentProtected() As ProtectionLevel</p> |
//--- Get ProtectionLevel DocumentProtection.ProtectionLevel level = docProtect.DocumentProtected; //--- Set ProtectionLevel to allow editing of Forms only docProtect.DocumentProtected = DocumentProtection.ProtectionLevel.Comments; |
'--- Get ProtectionLevel Dim level As DocumentProtection.ProtectionLevel = docProtect.DocumentProtected '--- Set ProtectionLevel to allow editing of Forms only docProtect.DocumentProtected = DocumentProtection.ProtectionLevel.Comments |