Back to Devexpress

IRangePermissionSearchOptions Interface

aspnetcore-js-devexpress-dot-richedit-34f814f3.md

latest1.9 KB
Original Source

IRangePermissionSearchOptions Interface

Declares options used to search range permissions by the find(options) method.

Declaration

ts
export interface IRangePermissionSearchOptions

Properties

group Property

Specifies a group of users whose permissions are searched.

Declaration

ts
group?: string | RegExp

Property Value

TypeDescription
string

The name of the group.

| | RegExp |

A regular expression.

|

Remarks

js
var everyoneRangePermissions = richEdit.document.rangePermissions.find({group: 'everyone'});

position Property

Specifies the document position, interval, or array of intervals in which to search for range permissions.

Declaration

ts
position?: number | IInterval | IInterval[]

Property Value

TypeDescription
number

The document position.

| | IInterval |

The text interval.

| | IInterval[] |

An array of text intervals.

|

Remarks

js
var currentPositionRangePermissions = richEdit.document.rangePermissions.find({position: richEdit.selection.active});

userName Property

Specifies the name of the user whose permissions are searched.

Declaration

ts
userName?: string | RegExp

Property Value

TypeDescription
string

The name of the user.

| | RegExp |

A regular expression.

|

Remarks

js
var lawyerRangePermissions = richEdit.document.rangePermissions.find({userName: '[email protected]'});