RangePermission Class
Represents a document range for which editing permissions are set.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v14.2.Core.dll
#Declaration
#Returned By
The RangePermissionCollection.CreateRangePermission(DocumentRange) method returns an instance of RangePermission.
#Remarks
When document protection is activated, a document is read-only except for certain ranges that authenticated users are able to modify. 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 using the IUserListService service.
The RichEditControlOptionsBase.Authentication property enables you to specify the current user (identity) so that the corresponding ranges becomes editable.
Use the RichEditControlOptionsBase.RangePermissions property to specify highlighting for an editable range.
To enable/disable document protection, use the ProtectDocumentCommand/UnprotectDocumentCommand commands.