openpyxl.worksheet.protection模块¶
- class openpyxl.worksheet.protection.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)[源代码]¶
基类:
openpyxl.descriptors.serialisable.Serialisable
,openpyxl.worksheet.protection._Protected
有关保护工作表各个方面的信息。真值表示对象或操作的保护处于活动状态,这是 违约 当保护被激活时,即用户不能做什么
- algorithmName¶
值的类型必须小于class'str'>
- autoFilter¶
值的类型必须小于class'bool'>
- deleteColumns¶
值的类型必须小于class'bool'>
- deleteRows¶
值的类型必须小于class'bool'>
- enabled¶
在python中不允许或混淆所需的属性名(例如“type”)或需要更具描述性的名称(例如“u”的“underline”)时,可以使用别名。
- formatCells¶
值的类型必须小于class'bool'>
- formatColumns¶
值的类型必须小于class'bool'>
- formatRows¶
值的类型必须小于class'bool'>
- hashValue¶
- insertColumns¶
值的类型必须小于class'bool'>
- insertHyperlinks¶
值的类型必须小于class'bool'>
- insertRows¶
值的类型必须小于class'bool'>
- objects¶
值的类型必须小于class'bool'>
- pivotTables¶
值的类型必须小于class'bool'>
- saltValue¶
- scenarios¶
值的类型必须小于class'bool'>
- selectLockedCells¶
值的类型必须小于class'bool'>
- selectUnlockedCells¶
值的类型必须小于class'bool'>
- sheet¶
值的类型必须小于class'bool'>
- sort¶
值的类型必须小于class'bool'>
- spinCount¶
值的类型必须小于class“int”>
- tagname = 'sheetProtection'¶