WorksheetCollection

WorksheetCollection

Overview

WorksheetCollection is a class in Aspose.Cells FOSS for Java. Inherits from: Iterable<Worksheet>.

Represents a collection of worksheets in a workbook.

Properties

NameTypeAccessDescription
countintReadReturns the count.
activeSheetIndexintReadReturns the active sheet index.
activeSheetNameStringReadReturns the active sheet name.

Methods

SignatureDescription
get(index: int)WorksheetReturns the requested item.
get(name: String)WorksheetReturns the requested item.
getCount()intReturns the count.
getActiveSheetIndex()intReturns the active sheet index.
setActiveSheetIndex(value: int)Sets the active sheet index.
getActiveSheetName()StringReturns the active sheet name.
setActiveSheetName(value: String)Sets the active sheet name.
add()intAdds a new item to the current collection.
add(sheetName: String)intAdds a new item to the current collection.
removeAt(sheetName: String)Removes at.
removeAt(index: int)Removes at.
iterator()Iterator<Worksheet>Returns an iterator over the current collection.