public class DeleteBlankOptions extends DeleteOptions
| Constructor and Description |
|---|
DeleteBlankOptions() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getDrawingsAsBlank()
Whether drawing related objects such as picture, shape, chart...
|
boolean |
getEmptyFormulaValueAsBlank()
Whether one cell will be taken as blank when it is formula and the calculated result is null or empty string.
|
boolean |
getEmptyStringAsBlank()
Whether one cell will be taken as blank when its value is empty string.
|
int |
getEndIndex()
Specifies the end row/column index(inclusive) of the range to check and delete blank rows/columns.
|
int |
getMergedCellsShrinkType()
Indicates how to process merged cells when deleting blank rows/columns.
|
int |
getStartIndex()
Specifies the start row/column index of the range to check and delete blank rows/columns.
|
void |
setDrawingsAsBlank(boolean value)
Whether drawing related objects such as picture, shape, chart...
|
void |
setEmptyFormulaValueAsBlank(boolean value)
Whether one cell will be taken as blank when it is formula and the calculated result is null or empty string.
|
void |
setEmptyStringAsBlank(boolean value)
Whether one cell will be taken as blank when its value is empty string.
|
void |
setEndIndex(int value)
Specifies the end row/column index(inclusive) of the range to check and delete blank rows/columns.
|
void |
setMergedCellsShrinkType(int value)
Indicates how to process merged cells when deleting blank rows/columns.
|
void |
setStartIndex(int value)
Specifies the start row/column index of the range to check and delete blank rows/columns.
|
getFormulaChangeMonitor, getUpdateReference, setFormulaChangeMonitor, setUpdateReferencepublic boolean getEmptyStringAsBlank()
public void setEmptyStringAsBlank(boolean value)
public boolean getEmptyFormulaValueAsBlank()
Remarks
Generally user should make sure the formulas have been calculated before deleting operation with this property as true. Otherwise all newly cretaed formulas by normal apis such asCell.getFormula() will be taken as blank and may be deleted
because before calculation their calculated results are all null.public void setEmptyFormulaValueAsBlank(boolean value)
Remarks
Generally user should make sure the formulas have been calculated before deleting operation with this property as true. Otherwise all newly cretaed formulas by normal apis such asCell.getFormula() will be taken as blank and may be deleted
because before calculation their calculated results are all null.public boolean getDrawingsAsBlank()
Remarks
When setting this property as false, all rows/columns covered by drawing objects will not be taken as blank and will not be deleted.public void setDrawingsAsBlank(boolean value)
Remarks
When setting this property as false, all rows/columns covered by drawing objects will not be taken as blank and will not be deleted.public int getMergedCellsShrinkType()
Remarks
ForMergedCellsShrinkType.KEEP_HEADER_ONLY, all cells in it will be taken as blank except the non-blank top-left cell. It is the default value of this property.MergedCellsShrinkType.NONE, all cells in it will be taken as non-blank.MergedCellsShrinkType.SHRINK_TO_FIT, all cells outside the content display area will be taken as blank.public void setMergedCellsShrinkType(int value)
Remarks
ForMergedCellsShrinkType.KEEP_HEADER_ONLY, all cells in it will be taken as blank except the non-blank top-left cell. It is the default value of this property.MergedCellsShrinkType.NONE, all cells in it will be taken as non-blank.MergedCellsShrinkType.SHRINK_TO_FIT, all cells outside the content display area will be taken as blank.public int getStartIndex()
public void setStartIndex(int value)
public int getEndIndex()
public void setEndIndex(int value)
See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.