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 | ||||
---|---|---|---|---|
| ||||
Public Property DocumentProtected() As 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 |
---|