permissioncollection-ag凯发旗舰厅



com.spire.doc.collections
class permissioncollection

java.lang.object
  extended by com.spire.doc.ownerholder
      extended by com.spire.doc.collections.collectionex
          extended by com.spire.doc.collections.permissioncollection
all implemented interfaces:
java.lang.iterable

public class permissioncollection
extends collectionex

a collection of permission objects that represent the permission in the document.


method summary
 void clear()
          removes all permissions from the document.
 permission findbyid(java.lang.string id)
          finds permission object by specified id
 permission get(int index)
          gets the permission at the specified index.
 permission get(java.lang.string id)
          gets the permission with the specified id.
 void remove(permission permission)
          removes the specified permission.
 void removeat(int index)
          removes a permission at the specified index.
 
methods inherited from class com.spire.doc.collections.collectionex
getcount, iterator
 
methods inherited from class com.spire.doc.ownerholder
getdocument
 
method detail

get

public permission get(java.lang.string id)
gets the permission with the specified id.
parameters:
id - the id
returns:
the permission

get

public permission get(int index)
gets the permission at the specified index.
parameters:
index - the index
returns:
the permission

findbyid

public permission findbyid(java.lang.string id)
finds permission object by specified id
parameters:
id - the permission id
returns:
the permission

removeat

public void removeat(int index)
removes a permission at the specified index.
parameters:
index - the index

remove

public void remove(permission permission)
removes the specified permission.
parameters:
permission - the permission

clear

public void clear()
removes all permissions from the document.
overrides:
clear in class collectionex


网站地图