ICellularFormatInstance
Leave feedback
On this page
public interface ICellularFormatInstance
Defines methods that are required for access to spreadsheet formats, having one or many worksheets.
Learn more
- More details about applying redactions: Redaction basics
- More details about spreadsheet redactions: Spreadsheet redactions
- More details about implementing custom formats: Create custom format handler
| Method | Description |
|---|---|
| getSheetIndex(String sheetName) | Gets the worksheet index by worksheet name, if possible. |
| replaceInColumn(Pattern regularExpression, String replacement, int column, int sheet) | Replaces all matches with a given replacement in the specified column and worksheet. |
| replaceInColumn(Pattern regularExpression, String replacement, int column) | Replaces all matches with a given replacement in the specified column on all worksheets. |
public abstract int getSheetIndex(String sheetName)
Gets the worksheet index by worksheet name, if possible.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| sheetName | java.lang.String | Worksheet name |
Returns: int - Worksheet index or -1 if not found
public abstract RedactionResult replaceInColumn(Pattern regularExpression, String replacement, int column, int sheet)
Replaces all matches with a given replacement in the specified column and worksheet.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| regularExpression | java.util.regex.Pattern | Regular expression to search and replace |
| replacement | java.lang.String | Textual replacement |
| column | int | Zero-based column index |
| sheet | int | Zero-based worksheet index |
Returns: RedactionResult - Replacement result
public abstract RedactionResult replaceInColumn(Pattern regularExpression, String replacement, int column)
Replaces all matches with a given replacement in the specified column on all worksheets.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| regularExpression | java.util.regex.Pattern | Regular expression to search and replace |
| replacement | java.lang.String | Textual replacement |
| column | int | Zero-based column index |
Returns: RedactionResult - Replacement result
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.