public interface IWorksheet
| Modifier and Type | Method and Description | 
|---|---|
| void | clear(IRangeAddress range)Removes all content (values, comments, hyperlinks, styles) from the given range | 
| IBorderService | getBorderService() | 
| ICommentService | getCommentService() | 
| IFontService | getFontService() | 
| String | getFormat(IRangeAddress range)Gets the common RAW string format code of the given range of cells | 
| IHyperlinkService | getHyperlinkService() | 
| int | getId() | 
| IDrawingService | getImageService() | 
| IWorksheetStructure | getLayout() | 
| String | getName() | 
| IScellApiResolver | getResolver() | 
| IWorksheetStorage | getStorages() | 
| IStyleService | getStyleService() | 
| IValueService | getValueService() | 
| void | hide(boolean hide)Hides/shows the worksheet | 
| void | inputContent(IRangeAddress range,
            IRichString input)Deprecated. 
 | 
| void | inputContent(IRangeAddress range,
            String input)Deprecated. 
 | 
| boolean | isHidden() | 
| void | rename(String name)Renames the worksheet | 
| void | setContent(IRangeAddress range,
          boolean cellContent)Deprecated. 
 | 
| void | setContent(IRangeAddress range,
          Number cellContent)Deprecated. 
 | 
| void | setFormat(IRangeAddress range,
         String format)Sets the RAW string format code to the cells of the given range | 
| Stream<IEntry<IRangeAddress,String>> | streamExistingFormattedValues(IRangeAddress range)Deprecated. 
 current method will be completely removed in future releases,
 but for the time being it's the only way to get formatted values | 
int getId()
String getName()
boolean isHidden()
IWorksheetStructure getLayout()
IWorksheetStructure that manages rows, columns or merged cells@Deprecated void inputContent(IRangeAddress range, String input)
IValueService.parseContent(IRangeAddress, String)The input will be recognized and set as a corresponding type of content
range - a range or single cell addressinput - a string for content recognitionIRangeAddress@Deprecated void inputContent(IRangeAddress range, IRichString input)
IValueService.set(IRangeAddress, IValue)The input will be recognized and set as a corresponding type of content
range - a range or single cell addressinput - a string for content recognitionIRangeAddress, 
IRichString@Deprecated void setContent(IRangeAddress range, Number cellContent)
IValueService.set(IRangeAddress, IValue)range - a range or single cell addresscellContent - a number to be setIRangeAddress@Deprecated void setContent(IRangeAddress range, boolean cellContent)
IValueService.set(IRangeAddress, IValue)range - a range or single cell addresscellContent - a boolean value to be setIRangeAddressvoid setFormat(IRangeAddress range, String format)
see https://support.microsoft.com/en-us/office/number-format-codes-5026bbd6-04bc-48cd-bf33-80f18b4eae68
range - the target rangeformat - the format codeString getFormat(IRangeAddress range)
see https://support.microsoft.com/en-us/office/number-format-codes-5026bbd6-04bc-48cd-bf33-80f18b4eae68
range - the required range@Deprecated Stream<IEntry<IRangeAddress,String>> streamExistingFormattedValues(IRangeAddress range)
It means, that all numeric values will be transformed to formatted once.
For example, if cell contains integer value = 123 with 
 IValue.ValueType.NUMERIC
 value type and format for this cell is set to $0.00, 
 then this method will return $123.00 instead of 123
range - the range at the intersection of which values with applied formatting should be streamed.void rename(String name)
name - the new  name of the worksheetvoid hide(boolean hide)
hide - if true the worksheet will be hiddenvoid clear(IRangeAddress range)
range - the IRangeAddress in which the content will be removedIBorderService getBorderService()
IBorderService to manage border sides and stylesICommentService getCommentService()
ICommentService to manage the commentsIDrawingService getImageService()
IDrawingService to manage the drawingsIFontService getFontService()
IFontService to manage the fonts of the cell contentsIHyperlinkService getHyperlinkService()
IHyperlinkService to manage the hyperlinksIStyleService getStyleService()
IStyleService to manage the stylesIValueService getValueService()
IValueService to manage the values the cellsIWorksheetStorage getStorages()
IWorksheetStorage to get the existing worksheet dataIScellApiResolver getResolver()
IScellApiResolver for convenienceCopyright © 2025. All rights reserved.