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.

Description

WorksheetCollection is a class in the Aspose.Cells FOSS library for Java that exposes 12 methods and 3 properties for programmatic use. It extends Iterable<Worksheet>, inheriting shared functionality from its parent type.

Core capabilities include: string; sets the active sheet index; sets the active sheet name. These operations enable developers to integrate worksheetcollection functionality directly into Java applications.

The class also provides the count property (returns the count), the activeSheetIndex property (returns the active sheet index), the activeSheetName property (returns the active sheet name).

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

 English