paper-xlsxAPI referenceworksheet.protection
SheetProtection
paper-xlsx 0.2.1 API reference
Information about protection of various aspects of a sheet. True values mean that protection for the object or action is active This is the default when protection is active, ie. users cannot do something
SheetProtection(sheet=False, objects=False, scenarios=False, formatCells=True, formatRows=True, formatColumns=True, insertColumns=True, insertRows=True, insertHyperlinks=True, deleteColumns=True, deleteRows=True, selectLockedCells=False, selectUnlockedCells=False, sort=True, autoFilter=True, pivotTables=True, password=None, algorithmName=None, saltValue=None, spinCount=None, hashValue=None)Attributes
algorithmName
attributealgorithmName= algorithmNameautoFilter
attributeautoFilter= autoFilterdeleteColumns
attributedeleteColumns= deleteColumnsdeleteRows
attributedeleteRows= deleteRowsenabled
attributeenabled= Alias('sheet')formatCells
attributeformatCells= formatCellsformatColumns
attributeformatColumns= formatColumnsformatRows
attributeformatRows= formatRowshashValue
attributehashValue= hashValueidx_base
attributeidx_base= 0insertColumns
attributeinsertColumns= insertColumnsinsertHyperlinks
attributeinsertHyperlinks= insertHyperlinksinsertRows
attributeinsertRows= insertRowsnamespace
attributenamespace= Noneobjects
attributeobjects= objectspassword
attributepassword= passwordpivotTables
attributepivotTables= pivotTablessaltValue
attributesaltValue= saltValuescenarios
attributescenarios= scenariosselectLockedCells
attributeselectLockedCells= selectLockedCellsselectUnlockedCells
attributeselectUnlockedCells= selectUnlockedCellssheet
attributesheet= sheetsort
attributesort= sortspinCount
attributespinCount= spinCounttagname
attributetagname= 'sheetProtection'Functions
__iter__
func__iter__()disable
funcdisable()enable
funcenable()from_tree
funcfrom_tree(node)Create object from XML
paramnodeset_password
funcset_password(value='', already_hashed=False)paramvalue= ''paramalready_hashed= Falseto_tree
functo_tree(tagname=None, idx=None, namespace=None)paramtagname= Noneparamidx= Noneparamnamespace= None