com.aspose.cells

Class ProtectedRange

  • java.lang.Object
    • com.aspose.cells.ProtectedRange
public class ProtectedRange 
extends java.lang.Object

A specified range to be allowed to edit when the sheet protection is ON.

Property Getters/Setters Summary
CellAreagetCellArea()
Gets the CellArea object represents the cell area to be protected.
java.lang.StringgetName()
void
setName(java.lang.Stringvalue)
           Gets the Range title. This is used as a descriptor, not as a named range definition.
java.lang.StringgetPassword()
void
setPassword(java.lang.Stringvalue)
           Represents the password to protect the range.
java.lang.StringgetSecurityDescriptor()
void
setSecurityDescriptor(java.lang.Stringvalue)
           The security descriptor defines user accounts who may edit this range without providing a password to access the range.
 
Method Summary
voidaddArea(int startRow, int startColumn, int endRow, int endColumn)
Adds a referred area to this
com.aspose.cells.CellArea[]getAreas()
Gets all referred areas.
 

    • Property Getters/Setters Detail

      • getName/setName

        public java.lang.String getName() / public void setName(java.lang.String value)
        
        Gets the Range title. This is used as a descriptor, not as a named range definition.
      • getCellArea

        public CellArea getCellArea()
        
        Gets the CellArea object represents the cell area to be protected.
      • getPassword/setPassword

        public java.lang.String getPassword() / public void setPassword(java.lang.String value)
        
        Represents the password to protect the range.
      • getSecurityDescriptor/setSecurityDescriptor

        public java.lang.String getSecurityDescriptor() / public void setSecurityDescriptor(java.lang.String value)
        
        The security descriptor defines user accounts who may edit this range without providing a password to access the range.

    setName

    public voidsetName(java.lang.Stringvalue)
    
    Gets the Range title. This is used as a descriptor, not as a named range definition.

    setPassword

    public voidsetPassword(java.lang.Stringvalue)
    
    Represents the password to protect the range.

    setSecurityDescriptor

    public voidsetSecurityDescriptor(java.lang.Stringvalue)
    
    The security descriptor defines user accounts who may edit this range without providing a password to access the range.
    • Method Detail

      • getAreas

        public com.aspose.cells.CellArea[] getAreas()
        Gets all referred areas.
        Returns:
        Returns all referred areas.
      • addArea

        public void addArea(int startRow, int startColumn, int endRow, int endColumn)
        Adds a referred area to this
        Parameters:
        startRow - The start row.
        startColumn - The start column.
        endRow - The end row.
        endColumn - The end column.