IUserListService Interface
Provides a list of identities to fill the Editing Permissions form.
Namespace: DevExpress.XtraRichEdit.Services
Assembly: DevExpress.RichEdit.v20.1.Core.dll
NuGet Package: DevExpress.RichEdit.Core
NuGet Packages: DevExpress.RichEdit.Core, DevExpress.WindowsDesktop.RichEdit.Core
Declaration
Remarks
The service can be used to fill the Editing Permissions Dialog at runtime. See the Range Permissions document for more information.
The code sample illustrates how to implement the IUserListService
interface in your application.
User name and group membership are represented by the MyUser object instance. When the MyUserList service is instantiated, it obtains a list of user names and stores the list in a local variable. The IUserListService.GetUsers method provides a list of user names upon request.
Note
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<IUserListService>(new MyUserListService(myUserList));