Description |
---|
Excerpt |
---|
Sets or returns a protection level for the document. Possible values are: None, TrackChanges, Comments, Forms, and ReadOnly. |
Signature | ||||
---|---|---|---|---|
| ||||
<table class="diff-macro"><thead><tr><th class="diff-macro-title">unmigrated-wiki-markup</th></tr></thead><tbody><tr><td class="diff-macro-body"><pre> public ProtectionLevel DocumentProtected{ get; set; } </pre></td></tr></tbody></table> |
Signature | ||||
---|---|---|---|---|
| ||||
Public <p>Public Property DocumentProtected() As ProtectionLevel</p>ProtectionLevel |
Example |
---|
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
//--- Get ProtectionLevel
DocumentProtection.ProtectionLevel level = docProtect.DocumentProtected;
//--- Set ProtectionLevel to allow editing of Forms only
docProtect.DocumentProtected = DocumentProtection.ProtectionLevel.Comments;
|
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
'--- Get ProtectionLevel
Dim level As DocumentProtection.ProtectionLevel = docProtect.DocumentProtected
'--- Set ProtectionLevel to allow editing of Forms only
docProtect.DocumentProtected = DocumentProtection.ProtectionLevel.Comments
|
Example |
---|