openpyxl.workbook.defined 名称模块

class openpyxl.workbook.defined_name.DefinedName(name=None, comment=None, customMenu=None, description=None, help=None, statusBar=None, localSheetId=None, hidden=None, function=None, vbProcedure=None, xlm=None, functionGroupId=None, shortcutKey=None, publishToServer=None, workbookParameter=None, attr_text=None)[源代码]

基类:openpyxl.descriptors.serialisable.Serialisable

attr_text
comment

值的类型必须小于class'str'>

customMenu

值的类型必须小于class'str'>

description

值的类型必须小于class'str'>

property destinations
function

值的类型必须小于class'bool'>

functionGroupId

值的类型必须小于class“int”>

help

值的类型必须小于class'str'>

hidden

值的类型必须小于class'bool'>

property is_external
property is_reserved
localSheetId

值的类型必须小于class“int”>

name

值的类型必须小于class'str'>

publishToServer

值的类型必须小于class'bool'>

shortcutKey

值的类型必须小于class'str'>

statusBar

值的类型必须小于class'str'>

tagname = 'definedName'
property type
value

在python中不允许或混淆所需的属性名(例如“type”)或需要更具描述性的名称(例如“u”的“underline”)时,可以使用别名。

vbProcedure

值的类型必须小于class'bool'>

workbookParameter

值的类型必须小于class'bool'>

xlm

值的类型必须小于class'bool'>

class openpyxl.workbook.defined_name.DefinedNameList(definedName=())[源代码]

基类:openpyxl.descriptors.serialisable.Serialisable

append(defn)[源代码]
definedName

只能包含声明类型的对象的序列(列表或元组)

delete(name, scope=None)[源代码]

删除分配给特定或全局的名称

get(name, scope=None)[源代码]

获取分配给特定工作表或全局的名称

localnames(scope)[源代码]

提供特定工作表的所有名称的列表

tagname = 'definedNames'