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.

This class provides 9 methods for working with WorksheetCollection objects in Java programs. Available methods include: add, get, getActiveSheetIndex, getActiveSheetName, getCount, iterator, removeAt, setActiveSheetIndex, setActiveSheetName. All exported members are accessible to any Java application after installing the Aspose.Cells FOSS for Java package. Properties: activeSheetIndex, activeSheetName, count.

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.

See Also