Aspose::Cells::IWriteProtection Class Referenceabstract

Specifies write protection settings for a workbook. More...

Inherits Object.

Public Member Functions

virtual intrusive_ptr< Aspose::Cells::Systems::String > GetAuthor ()=0
 Gets the author. More...
 
virtual void SetAuthor (intrusive_ptr< Aspose::Cells::Systems::String > value)=0
 Sets the author. More...
 
virtual bool GetRecommendReadOnly ()=0
 Indicates if the Read Only Recommended option is selected. More...
 
virtual void SetRecommendReadOnly (bool value)=0
 Indicates if the Read Only Recommended option is selected. More...
 
virtual bool IsWriteProtected ()=0
 Indicates whether this workbook is write protected. More...
 
virtual void SetPassword (intrusive_ptr< Aspose::Cells::Systems::String > value)=0
 Sets the protected password to modify the file. More...
 
virtual bool ValidatePassword (intrusive_ptr< Aspose::Cells::Systems::String > password)=0
 Returns true if the specified password is the same as the write-protection password the file was protected with. More...
 

Detailed Description

Specifies write protection settings for a workbook.

Member Function Documentation

◆ GetAuthor()

virtual intrusive_ptr<Aspose::Cells::Systems::String> Aspose::Cells::IWriteProtection::GetAuthor ( )
pure virtual

Gets the author.

◆ GetRecommendReadOnly()

virtual bool Aspose::Cells::IWriteProtection::GetRecommendReadOnly ( )
pure virtual

Indicates if the Read Only Recommended option is selected.

◆ IsWriteProtected()

virtual bool Aspose::Cells::IWriteProtection::IsWriteProtected ( )
pure virtual

Indicates whether this workbook is write protected.

◆ SetAuthor()

virtual void Aspose::Cells::IWriteProtection::SetAuthor ( intrusive_ptr< Aspose::Cells::Systems::String >  value)
pure virtual

Sets the author.

◆ SetPassword()

virtual void Aspose::Cells::IWriteProtection::SetPassword ( intrusive_ptr< Aspose::Cells::Systems::String >  value)
pure virtual

Sets the protected password to modify the file.

◆ SetRecommendReadOnly()

virtual void Aspose::Cells::IWriteProtection::SetRecommendReadOnly ( bool  value)
pure virtual

Indicates if the Read Only Recommended option is selected.

◆ ValidatePassword()

virtual bool Aspose::Cells::IWriteProtection::ValidatePassword ( intrusive_ptr< Aspose::Cells::Systems::String >  password)
pure virtual

Returns true if the specified password is the same as the write-protection password the file was protected with.

Parameters
passwordThe specified password.
Returns