...
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; } {signature}{signature:</pre></td></tr></tbody></table> |
Signature | ||||||
---|---|---|---|---|---|---|
| }
Public
| |||||
<p>Public Property DocumentProtected() As ProtectionLevel {signature} {example}{code:csharp|title=C#}ProtectionLevel</p> |
Example |
---|
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
//--- Get ProtectionLevel
DocumentProtection.ProtectionLevel level = docProtect.DocumentProtected;
//--- Set ProtectionLevel to allow editing of Forms only
docProtect.DocumentProtected = DocumentProtection.ProtectionLevel.Comments;
{code}
{code: |
Code Block | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| |title=
| }|||||||||
'--- Get ProtectionLevel
Dim level As DocumentProtection.ProtectionLevel = docProtect.DocumentProtected
'--- Set ProtectionLevel to allow editing of Forms only
docProtect.DocumentProtected = DocumentProtection.ProtectionLevel.Comments
{code}
{example}
|
Example |
---|