You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libraries/radwordsprocessing/model/permissionrange.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ A __PermissionRange__ object holds annotation markers which specify for which ra
20
20
## Inserting a PermissionRange
21
21
22
22
23
-
Creating a __PermissionRange__ requires to pass an instance of the __PermissionRangeCredentials__ class to the constructor, which can be created in either one of the following ways:
23
+
Creating a __PermissionRange__ requires passing an instance of the __PermissionRangeCredentials__ class to the constructor, which can be created in either one of the following ways:
24
24
25
25
*__PermissionRangeCredentials(EditingGroup editingGroup):__ Initialize credentials with a type of user group. The enumeration exposes the following members:
26
26
* __None:__ Specifies that none of the users that open the document shall be allowed to edit range permissions using this editing group when document protection is enforced.
@@ -50,7 +50,7 @@ __Example 1__ demonstrates how to create permission credentials for a single use
50
50
PermissionRange range = editor.InsertPermissionRange(everyone, cell);
51
51
{{endregion}}
52
52
53
-
The paragraph should belong to the same document that is passed to the constructor of the __PermissionRange__ object, otherwise an exception is thrown.
53
+
The paragraph should belong to the same document that is passed to the constructor of the __PermissionRange__ object, otherwise, an exception is thrown.
54
54
55
55
56
56
Inserting a __PermissionRange__ in the document can be achieved through [RadFlowDocumentEditor]({%slug radwordsprocessing-editing-radflowdocumenteditor%}) as well. Since a permission range refers to a specific document element or a range of elements, there are several overloads for the __InsertPermissionRange()__ method - accepting a __TableCell__, __TableRow__ or two inline elements representing the start and end of the range.
@@ -82,6 +82,8 @@ __ProtectionMode__ exposes the following members:
82
82
*__AllowComments:__ Specifies that working with comments is allowed in addition to editing in permission ranges.
83
83
*__ReadOnly:__ Specifies that editing is allowed only in permission regions by the users or groups that have permissions for edition. This mode is applied when __ProtectionMode__ parameter is not passed to the __Protect()__ method.
84
84
85
+
>note In MS Word [passwords are case-sensitive and can be a maximum of 15 characters long](https://support.microsoft.com/en-us/office/protect-a-document-with-a-password-05084cc3-300d-4c1a-8416-38d3e37d6826).
86
+
85
87
__Example 3__ shows how to protect and unprotect a document using the various overloads of the methods.
86
88
87
89
#### __[C#] Example 3: Protect and unprotect document through RadFlowDocumentEditor__
0 commit comments