...
Description |
---|
Excerpt |
---|
Sets or returns a protection level for the document. Possible values are: None, TrackChanges, Comments, Forms, and ReadOnly. |
Signature | ||||
---|---|---|---|---|
| ||||
public ProtectionLevel DocumentProtected{ get; set; }
{signature}{signature: |
Signature | ||||||
---|---|---|---|---|---|---|
| }
| |||||
Public Property DocumentProtected() As ProtectionLevel
{signature}
{example}{code:csharp|title=C#} |
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 |
---|