Class ProtectedRange

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

objectProtectedRange

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

CellArea

IsProtectedWithPassword

Indicates whether the worksheets is protected with password.

public bool IsProtectedWithPassword { get; }

Property Value

bool

Name

Gets the Range title. This is used as a descriptor, not as a named range definition.

public string Name { get; set; }

Property Value

string

Password

Represents the password to protect the range.

public string Password { get; set; }

Property Value

string

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

string

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.