com.aspose.cells
Class ProtectedRange

java.lang.Object
    extended by 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.
booleanisProtectedWithPassword()
           Indicates whether the worksheets is protected with password.
java.lang.StringgetName()
voidsetName(java.lang.String)
           Gets the Range title. This is used as a descriptor, not as a named range definition.
java.lang.StringgetPassword()
voidsetPassword(java.lang.String)
           Represents the password to protect the range.
java.lang.StringgetSecurityDescriptor()
voidsetSecurityDescriptor(java.lang.String)
           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.

setName

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.

isProtectedWithPassword

public boolean isProtectedWithPassword()
Indicates whether the worksheets is protected with password.

getPassword/setPassword

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

setPassword

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.

setSecurityDescriptor

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.

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.

See Also:
          Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
          Aspose.Cells Support Forum - our preferred method of support.