public class DeleteBlankOptions extends DeleteOptions
| Constructor and Description |
|---|
DeleteBlankOptions() |
| Modifier and Type | Method and Description |
|---|---|
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 |
getMergedCellsShrinkType()
Indicates how to process merged cells when deleting blank rows/columns.
For MergedCellsShrinkType.KEEP_HEADER_ONLY, all cells in it will be taken as blank except the non-blank top-left cell. |
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 |
setMergedCellsShrinkType(int value)
Indicates how to process merged cells when deleting blank rows/columns.
For MergedCellsShrinkType.KEEP_HEADER_ONLY, all cells in it will be taken as blank except the non-blank top-left cell. |
getUpdateReference, 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 int getMergedCellsShrinkType()
MergedCellsShrinkType.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)
MergedCellsShrinkType.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.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 2001-2023. All Rights Reserved.