Back to Devexpress

RangePermission.Group Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-rangepermission-c4b8d290.md

latest3.2 KB
Original Source

RangePermission.Group Property

Gets or sets the name of the group of users for which the editing permission is set.

Namespace : DevExpress.XtraRichEdit.API.Native

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
public string Group { get; set; }
vb
Public Property Group As String

Property Value

TypeDescription
String

A string containing the name of the user group.

|

Remarks

For each RangePermission object in a document the value of the Group property is compared with the AuthenticationOptions.Group property value. If they are equal, or the Group value equals to “Everyone” , the document range represented by the RangePermission.Range property is allowed for editing.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Group property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

word-document-api-examples/CS/CodeExamples/ProtectionActions.cs#L102

csharp
RangePermission rp = rangePermissions.CreateRangePermission(document.Paragraphs[3].Range);
rp.Group = "Administrators";
rp.UserName = "[email protected]";

word-document-api-examples/VB/CodeExamples/ProtectionActions.vb#L82

vb
Dim rp As DevExpress.XtraRichEdit.API.Native.RangePermission = rangePermissions.CreateRangePermission(document.Paragraphs(CInt((3))).Range)
rp.Group = "Administrators"
rp.UserName = "[email protected]"

See Also

Group

Authentication

RangePermission Class

RangePermission Members

DevExpress.XtraRichEdit.API.Native Namespace