Skip to main content

工作簿对象

SheetJS 工作簿对象表示工作表和关联的工作簿级元数据的集合。

¥SheetJS workbook objects represent collections of worksheets and associated workbook-level metadata.

对于给定的工作簿对象 wb

¥For a given workbook object wb:

wb.SheetNames 是工作簿中工作表的有序列表。

¥wb.SheetNames is an ordered list of the sheets in the workbook.

wb.Sheets 是一个对象,其键是工作表名称(来自 SheetNames),其值是工作表对象。

¥wb.Sheets is an object whose keys are worksheet names (from SheetNames) and whose values are worksheet objects.

wb.Workbook 存储 工作簿级属性

¥wb.Workbook stores workbook-level attributes.

读取文件时,wb.bookType 为确定的书籍类型。

¥When reading a file, wb.bookType is the determined book type.

文件属性

¥File Properties

wb.Props 是存储标准属性的对象。

¥wb.Props is an object storing the standard properties.

wb.Custprops 存储自定义属性。

¥wb.Custprops stores custom properties.

"文件属性" 更详细地介绍了该功能。

¥"File Properties" covers the feature in more detail.

工作簿级属性

¥Workbook-Level Attributes

wb.Workbook 存储工作簿级别的属性。

¥wb.Workbook stores workbook-level attributes.

定义名称

¥Defined Names

wb.Workbook.Names 是已定义名称对象的数组。定义的名称在 "定义名称" 中有更详细的讨论

¥wb.Workbook.Names is an array of defined name objects. Defined names are discussed in more detail in "Defined Names"

工作簿视图

¥Workbook Views

wb.Workbook.Views 是工作簿视图对象的数组,其键如下:

¥wb.Workbook.Views is an array of workbook view objects which have the keys:

描述
RTL如果为 true,则从右到左显示

其他工作簿属性

¥Miscellaneous Workbook Properties

wb.Workbook.WBProps 拥有其他工作簿属性:

¥wb.Workbook.WBProps holds other workbook properties:

描述
CodeNameVBA 工作簿名称
date1904时代:1900 系统为 0/false,1904 系统为 1/true
filterPrivacy保存时警告或删除个人识别信息

工作表元数据

¥Sheet Metadata

wb.Workbook.Sheets 是工作表元数据对象的数组,其键如下:

¥wb.Workbook.Sheets is an array of sheet metadata objects which have the keys:

描述
HiddenSheet 可见性
CodeNameVBA 工作表代码名称