Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IRangePermissionSearchOptions Interface

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

#Declaration

TypeScript
export interface IRangePermissionSearchOptions

#Properties

#group Property

Specifies a group of users whose permissions are searched.

#Declaration

TypeScript
group?: string | RegExp

#Property Value

Type Description
string

The name of the group.

RegExp

A regular expression.

#Remarks

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

TypeScript
position?: number | IInterval | IInterval[]

#Property Value

Type Description
number

The document position.

IInterval

The text interval.

IInterval[]

An array of text intervals.

#Remarks

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

#userName Property

Specifies the name of the user whose permissions are searched.

#Declaration

TypeScript
userName?: string | RegExp

#Property Value

Type Description
string

The name of the user.

RegExp

A regular expression.

#Remarks

var lawyerRangePermissions = richEdit.document.rangePermissions.find({userName: 'lawyer@somecompany.com'});