Ranges with Permissions
When document protection is enabled, a document is read-only except for certain ranges that authenticated users are able to modify. Range permissions specify a user or set of users that are allowed to edit content.
Editable ranges can be highlighted and enclosed in brackets.
A collection of ranges with permissions is obtained via the SubDocument.BeginUpdateRangePermissions method. The Editing Permissions form provides a visual interface for end-users to view and change permissions. It is invoked via the ShowRangeEditingPermissionsFormCommand command. User names are supplied by the IUserListService service.
The RichEditControlOptionsBase.Authentication property enables you to specify the current user (identity) so that corresponding ranges become editable.
Use the RichEditControlOptionsBase.RangePermissions property to specify highlighting for an editable range.
To enable/disable document protection, use the ProtectDocumentCommand/UnprotectDocumentCommand commands.