WorkbookModel

Overview

WorkbookModel is a class in Aspose.Cells FOSS for Java.

Represents the top-level model of a workbook.

This class provides 19 methods for working with WorkbookModel objects in Java programs. Available methods include: WorkbookModel, getActiveSheetIndex, getDefaultStyle, getDefinedNames, getDiagnostics, getDocumentProperties, getExternalLinkRels, getExternalLinkXmls, getProperties, getRawDefaultFontXml, getRawThemeXml, getSettings, and 7 additional methods. All exported members are accessible to any Java application after installing the Aspose.Cells FOSS for Java package. Properties: activeSheetIndex, defaultStyle, definedNames, diagnostics, documentProperties, externalLinkRels, and 8 more.

Description

WorkbookModel is a class in the Aspose.Cells FOSS library for Java that exposes 18 methods and 14 properties for programmatic use.

Core capabilities include: list<worksheetmodel>; workbooksettingsmodel; workbookpropertiesmodel. These operations enable developers to integrate workbookmodel functionality directly into Java applications.

The class also provides the worksheets property (returns the worksheets), the settings property (returns the settings), the properties property (returns the properties).

Instances are created through a single constructor that initializes the object with default values.

Properties

NameTypeAccessDescription
worksheetsList<WorksheetModel>ReadReturns the worksheets.
settingsWorkbookSettingsModelReadReturns the settings.
propertiesWorkbookPropertiesModelReadReturns the properties.
documentPropertiesDocumentPropertiesModelReadReturns the document properties.
diagnosticsDiagnosticBagReadReturns the diagnostics.
stylesStyleRepositoryReadReturns the styles.
sharedStringsSharedStringRepositoryReadReturns the shared strings.
defaultStyleStyleValueReadReturns the default style.
activeSheetIndexintReadReturns the active sheet index.
definedNamesList<DefinedNameModel>ReadReturns the defined names.
rawThemeXmlbyte[]ReadGets the raw theme xml.
rawDefaultFontXmlStringReadGets the raw default font xml.
externalLinkXmlsList<byte[]>ReadReturns the external link XML files (in index order, matching externalLink1, externalLink2, …).
externalLinkRelsList<byte[]>ReadReturns the external link rels files (parallel to externalLinkXmls; element may be null).

Methods

SignatureDescription
WorkbookModel()Initializes a new WorkbookModel instance.
getWorksheets()List<WorksheetModel>Returns the worksheets.
getSettings()WorkbookSettingsModelReturns the settings.
getProperties()WorkbookPropertiesModelReturns the properties.
getDocumentProperties()DocumentPropertiesModelReturns the document properties.
getDiagnostics()DiagnosticBagReturns the diagnostics.
getStyles()StyleRepositoryReturns the styles.
getSharedStrings()SharedStringRepositoryReturns the shared strings.
getDefaultStyle()StyleValueReturns the default style.
setDefaultStyle(defaultStyle: StyleValue)Sets the default style.
getActiveSheetIndex()intReturns the active sheet index.
setActiveSheetIndex(activeSheetIndex: int)Sets the active sheet index.
getDefinedNames()List<DefinedNameModel>Returns the defined names.
getRawThemeXml()byte[]Returns the raw theme xml.
setRawThemeXml(rawThemeXml: byte[])Sets the raw theme xml value.
getRawDefaultFontXml()StringReturns the raw default font xml.
setRawDefaultFontXml(rawDefaultFontXml: String)Sets the raw default font xml value.
getExternalLinkXmls()List<byte[]>Returns the external link XML files (in index order, matching externalLink1, externalLink2, …).
getExternalLinkRels()List<byte[]>Returns the external link rels files (parallel to externalLinkXmls; element may be null).

See Also

 English