WorksheetCollection

WorksheetCollection

Overview

WorksheetCollection 是 NET 的 Aspose.Cells 中的一个类. 继承人: IEnumerable<Worksheet>.

WorksheetCollection.Add adds a new worksheet with a default name to the workbook.

Description

WorksheetCollection 是一个类在Aspose.Cells FOSS库的.NET 暴露了5种方法和3个属性用于编程使用. 它扩展到 IEnumerable<Worksheet>, 继承了其母型的共享功能.

课程还提供了 Count 属性 (得到集合中的工作表的总数).

Properties

NameTypeAccessDescription
CountintRead得到集合中的工作表的总数.
ActiveSheetIndexint阅读/写作
ActiveSheetNamestring阅读/写作获取或设置当前活动的工作表名字.

Methods

SignatureDescription
Add()将一个新的工作表添加到工作簿中,使用默认名称.
Add(sheetName: string)
RemoveAt(sheetName: string)删除指定名称的工作表
RemoveAt(index: int)
GetEnumerator()按顺序返回工作表的代器.

See Also

 中文