openpyxl.worksheet.datavalidation模块¶
- class openpyxl.worksheet.datavalidation.DataValidation(type=None, formula1=None, formula2=None, allow_blank=False, showErrorMessage=True, showInputMessage=True, showDropDown=None, allowBlank=None, sqref=(), promptTitle=None, errorStyle=None, error=None, prompt=None, errorTitle=None, imeMode=None, operator=None)[源代码]¶
基类:
openpyxl.descriptors.serialisable.Serialisable
- allowBlank¶
值的类型必须小于class'bool'>
- allow_blank¶
在python中不允许或混淆所需的属性名(例如“type”)或需要更具描述性的名称(例如“u”的“underline”)时,可以使用别名。
- cells¶
在python中不允许或混淆所需的属性名(例如“type”)或需要更具描述性的名称(例如“u”的“underline”)时,可以使用别名。
- error¶
值的类型必须小于class'str'>
- errorStyle¶
Value must be one of {'warning', 'stop', 'information'}
- errorTitle¶
值的类型必须小于class'str'>
- formula1¶
值的类型必须小于class'str'>
- formula2¶
值的类型必须小于class'str'>
- hide_drop_down¶
在python中不允许或混淆所需的属性名(例如“type”)或需要更具描述性的名称(例如“u”的“underline”)时,可以使用别名。
- imeMode¶
Value must be one of {'off', 'fullKatakana', 'on', 'fullAlpha', 'fullHangul', 'halfHangul', 'noControl', 'hiragana', 'halfKatakana', 'disabled', 'halfAlpha'}
- operator¶
Value must be one of {'notBetween', 'greaterThan', 'greaterThanOrEqual', 'notEqual', 'equal', 'lessThan', 'lessThanOrEqual', 'between'}
- prompt¶
值的类型必须小于class'str'>
- promptTitle¶
值的类型必须小于class'str'>
- ranges¶
在python中不允许或混淆所需的属性名(例如“type”)或需要更具描述性的名称(例如“u”的“underline”)时,可以使用别名。
- showDropDown¶
值的类型必须小于class'bool'>
- showErrorMessage¶
值的类型必须小于class'bool'>
- showInputMessage¶
值的类型必须小于class'bool'>
- sqref¶
值的类型必须是<class'openpyxl.worksheet.cell_range.multicellrange'>
- tagname = 'dataValidation'¶
- type¶
Value must be one of {'custom', 'date', 'decimal', 'list', 'time', 'whole', 'textLength'}
- validation_type¶
在python中不允许或混淆所需的属性名(例如“type”)或需要更具描述性的名称(例如“u”的“underline”)时,可以使用别名。
- class openpyxl.worksheet.datavalidation.DataValidationList(disablePrompts=None, xWindow=None, yWindow=None, count=None, dataValidation=())[源代码]¶
基类:
openpyxl.descriptors.serialisable.Serialisable
- property count¶
- dataValidation¶
只能包含声明类型的对象的序列(列表或元组)
- disablePrompts¶
值的类型必须小于class'bool'>
- tagname = 'dataValidations'¶
- xWindow¶
值的类型必须小于class“int”>
- yWindow¶
值的类型必须小于class“int”>