ApiProtectedRange

class ApiProtectedRange

Description

Class representing a user-protected range.

Instance Methods

SetTitle(sTitle): boolean

Sets a title to the current protected range.

SetRange(sRange): boolean

Sets a range to the current protected range.

AddUser(sId, sName, protectedRangeUserType): ApiProtectedRangeUserInfo | "null"

Sets a user to the current protected range.

DeleteUser(sId): bool

Removes a user from the current protected range.

GetAllUsers(): ApiProtectedRangeUserInfo[] | "null"

Returns all users from the current protected range.

SetAnyoneType(protectedRangeUserType): bool

Sets the type of the "Anyone" user to the current protected range.

GetUser(sId): ApiProtectedRangeUserInfo | "null"

Returns an object that represents a user from the current protected range.

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).