Aspose::Cells::ProtectedRange class

ProtectedRange class

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

class ProtectedRange

Methods

MethodDescription
AddArea(int32_t startRow, int32_t startColumn, int32_t endRow, int32_t endColumn)Adds a referred area to this.
GetAreas()Gets all referred areas.
GetCellArea()Gets the CellArea object represents the cell area to be protected.
GetName()Gets the Range title. This is used as a descriptor, not as a named range definition.
GetPassword()Represents the password to protect the range.
GetSecurityDescriptor()The security descriptor defines user accounts who may edit this range without providing a password to access the range.
IsNull() constChecks whether the implementation object is nullptr.
IsProtectedWithPassword()Indicates whether the worksheets is protected with password.
explicit operator bool() constoperator bool()
operator=(const ProtectedRange& src)operator=
ProtectedRange(ProtectedRange_Impl* impl)Constructs from an implementation object.
ProtectedRange(const ProtectedRange& src)Copy constructor.
SetName(const U16String& value)Gets the Range title. This is used as a descriptor, not as a named range definition.
SetName(const char16_t* value)Gets the Range title. This is used as a descriptor, not as a named range definition.
SetPassword(const U16String& value)Represents the password to protect the range.
SetPassword(const char16_t* value)Represents the password to protect the range.
SetSecurityDescriptor(const U16String& value)The security descriptor defines user accounts who may edit this range without providing a password to access the range.
SetSecurityDescriptor(const char16_t* value)The security descriptor defines user accounts who may edit this range without providing a password to access the range.
~ProtectedRange()Destructor.

Fields

FieldDescription
_implThe implementation object.

See Also