Class ProtectedRange
Namespace: Aspose.Cells
Assembly: Aspose.Cells.dll (25.2.0)
A specified range to be allowed to edit when the sheet protection is ON.
public class ProtectedRange
Inheritance
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Properties
CellArea
Gets the Aspose.Cells.ProtectedRange.CellArea object represents the cell area to be protected.
public CellArea CellArea { get; }
Property Value
IsProtectedWithPassword
Indicates whether the worksheets is protected with password.
public bool IsProtectedWithPassword { get; }
Property Value
Name
Gets the Range title. This is used as a descriptor, not as a named range definition.
public string Name { get; set; }
Property Value
Password
Represents the password to protect the range.
public string Password { get; set; }
Property Value
SecurityDescriptor
The security descriptor defines user accounts who may edit this range without providing a password to access the range.
public string SecurityDescriptor { get; set; }
Property Value
Methods
AddArea(int, int, int, int)
Adds a referred area to this
public void AddArea(int startRow, int startColumn, int endRow, int endColumn)
Parameters
startRow
int
The start row.
startColumn
int
The start column.
endRow
int
The end row.
endColumn
int
The end column.
GetAreas()
Gets all referred areas.
public CellArea[] GetAreas()
Returns
CellArea[]
Returns all referred areas.