Worksheet

Overview

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

Represents a worksheet in a workbook.

This class provides 35 methods for working with Worksheet objects in Java programs. Available methods include: freezePanes, getAutoFilter, getCells, getCharts, getComments, getConditionalFormattings, getFreezedColumns, getFreezedRows, getHyperlinks, getListObjects, getName, getPageSetup, and 23 additional methods. All exported members are accessible to any Java application after installing the Aspose.Cells FOSS for Java package. Properties: autoFilter, cells, charts, comments, conditionalFormattings, freezedColumns, and 17 more.

Properties

NameTypeAccessDescription
nameStringReadReturns the name.
visibilityTypeVisibilityTypeReadReturns the visibility type.
tabColorColorReadReturns the tab color.
showGridlinesbooleanReadReturns the show gridlines.
showRowColumnHeadersbooleanReadReturns the show row column headers.
showZerosbooleanReadReturns the show zeros.
rightToLeftbooleanReadReturns the right to left.
zoomintReadReturns the zoom.
cellsCellsReadReturns the cells.
protectionWorksheetProtectionReadReturns the protection.
pageSetupPageSetupReadReturns the page setup.
validationsValidationCollectionReadReturns the validations.
hyperlinksHyperlinkCollectionReadReturns the hyperlinks.
autoFilterAutoFilterReadReturns the auto filter.
conditionalFormattingsConditionalFormattingCollectionReadReturns the conditional formattings.
commentsCommentCollectionReadReturns the cell comments collection.
picturesPictureCollectionReadReturns the embedded pictures collection.
shapesShapeCollectionReadReturns the collection of drawing objects (shapes) on this worksheet.
chartsChartCollectionReadReturns the embedded charts collection.
listObjectsListObjectCollectionReadReturns the Excel tables (ListObjects) collection.
frozenbooleanReadReturns whether any panes are currently frozen.
freezedRowsintReadReturns the number of rows frozen from the top.
freezedColumnsintReadReturns the number of columns frozen from the left.

Methods

SignatureDescription
getName()StringReturns the name.
setName(name: String)Sets the name.
getVisibilityType()VisibilityTypeReturns the visibility type.
setVisibilityType(visibilityType: VisibilityType)Sets the visibility type.
getTabColor()ColorReturns the tab color.
setTabColor(value: Color)Sets the tab color.
getShowGridlines()booleanReturns the show gridlines.
setShowGridlines(value: boolean)Sets the show gridlines.
getShowRowColumnHeaders()booleanReturns the show row column headers.
setShowRowColumnHeaders(value: boolean)Sets the show row column headers.
getShowZeros()booleanReturns the show zeros.
setShowZeros(value: boolean)Sets the show zeros.
getRightToLeft()booleanReturns the right to left.
setRightToLeft(value: boolean)Sets the right to left.
getZoom()intReturns the zoom.
setZoom(value: int)Sets the zoom.
getCells()CellsReturns the cells.
getProtection()WorksheetProtectionReturns the protection.
getPageSetup()PageSetupReturns the page setup.
getValidations()ValidationCollectionReturns the validations.
getHyperlinks()HyperlinkCollectionReturns the hyperlinks.
getAutoFilter()AutoFilterReturns the auto filter.
getConditionalFormattings()ConditionalFormattingCollectionReturns the conditional formattings.
getComments()CommentCollectionReturns the cell comments collection.
getPictures()PictureCollectionReturns the embedded pictures collection.
getShapes()ShapeCollectionReturns the collection of drawing objects (shapes) on this worksheet.
getCharts()ChartCollectionReturns the embedded charts collection.
getListObjects()ListObjectCollectionReturns the Excel tables (ListObjects) collection.
freezePanes(row: int, column: int, freezedRows: int, freezedCols: int)Freezes panes at the specified cell in the worksheet.
freezePanes(cellName: String, freezedRows: int, freezedCols: int)Freezes panes at the specified cell in the worksheet.
unFreezePanes()Unfreezes all frozen panes in the worksheet.
isFrozen()booleanReturns whether any panes are currently frozen.
getFreezedRows()intReturns the number of rows frozen from the top.
getFreezedColumns()intReturns the number of columns frozen from the left.
protect()Enables protection for the current object.
unprotect()Disables protection for the current object.

See Also