Provides a list of user groups to fill the Editing Permissions form.
The code sample illustrates how to implement the IUserGroupListService interface in your application.
User name and group membership are represented by the MyUser object instance. When the MyGroupListService service is instantiated, it obtains a list of groups and stores the list in a local variable. The IUserGroupListService.GetUserGroups method provides a list of user groups upon request.
By default, the available groups should be: Everyone, Administrators, Contributors, Owners, Editors, and Current User. Groups other than Everyone have no special meaning. Use DOCX format to save documents containing user and group permissions. Note that only default group names are saved in a document in RTF format. DOC format cannot be used to retain group permissions.
A complete sample project is available at https://github.com/DevExpress-Examples/protection-how-to-programmatically-create-a-protected-document-and-apply-range-permissions-e3017
richEditControl1.ReplaceService(Of IUserGroupListService)(New MyGroupListService())