Range Permissions

Range permissions use bookmarks to specify protected ranges (regions) in a document. While a document is protected, a range permission limits editing to a collection of users and user groups. Editable sections can be displayed with highlighting or enclosed in brackets, as illustrated in the following image.

Users and Groups

The list of users available in the Editing Permissions dialog is generated from the document ranges with permissions. Users may be added at runtime: provide a custom service implementing the IUserListService interface and register this service with the DevExpress.Xpf.RichEdit.RichEditControl.ReplaceService``1 method. The IUserListService.GetUsers method should return the list of added user names.

The user groups available in the Editing Permissions dialog is predefined. By default, the available groups are: Everyone, Administrators, Contributors, Owners, Editors and Current User. Groups other than Everyone have no special meaning. There is no built-in user name with elevated permissions.

Note

Users and groups range permissions are not compatible with Editing Restrictions in Microsoft Word. Only the predefined groups are saved in RTF format. Group names are not saved in DOC format.

By default, the RichEditControl does not associate users with groups, so user names and group names are independent.
Similar to users, groups can be added at runtime: provide a custom service implementing the IUserGroupListService interface and register this service with the DevExpress.Xpf.RichEdit.RichEditControl.ReplaceService``1 method. The IUserGroupListService.GetUserGroups method should return the list of added group names.