public class CellsHelper
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addAddInFunction(java.lang.String function,
int minCountOfParameters,
int maxCountOfParameters,
int[] paramersType,
int functionValueType)
Deprecated.
Use WorksheetCollection.RegisterAddInFunction() methods instead.
|
static java.lang.String |
cellIndexToName(int row,
int column)
Gets cell name according to its row and column indexes.
|
static int[] |
cellNameToIndex(java.lang.String cellName)
Gets the cell row and column indexes according to its name.
|
static java.lang.String |
columnIndexToName(int column)
Gets column name according to column index.
|
static int |
columnNameToIndex(java.lang.String columnName)
Gets column index according to column name.
|
static java.lang.String |
convertA1FormulaToR1C1(java.lang.String formula,
int row,
int column)
Deprecated.
Use Worksheet.ConvertFormulaReferenceStyle() method instead.
|
static java.lang.String |
convertR1C1FormulaToA1(java.lang.String r1c1Formula,
int row,
int column)
Deprecated.
Use Worksheet.ConvertFormulaReferenceStyle() method instead.
|
static java.lang.String |
createSafeSheetName(java.lang.String nameProposal)
Checks given sheet name and create a valid one when needed.
|
static java.lang.String |
createSafeSheetName(java.lang.String nameProposal,
char replaceChar)
Checks given sheet name and create a valid one when needed.
|
static java.lang.String |
getAltStartPath()
Gets the alternate startup path, which is referred to by some external formula references.
|
static java.lang.String |
getCacheFolder()
Gets the folder for temporary files that may be used as data cache.
|
static CustomImplementationFactory |
getCustomImplementationFactory()
Gets the factory for creating instances with special implementation.
|
static DateTime |
getDateTimeFromDouble(double doubleValue,
boolean date1904)
Convert the double value to the date time value.
|
static double |
getDoubleFromDateTime(DateTime dateTime,
boolean date1904)
Convert the date time to double value.
|
static double |
getDPI()
Gets the DPI of the machine.
|
static java.lang.String |
getLibraryPath()
Gets the library path which is referred to by some external formula references.
|
static int |
getSignificantDigits()
Deprecated.
Use SignificantDigitsType property instead.
|
static int |
getSignificantDigitsType()
Gets the default type of significant digits for outputing numeric values.
|
static java.lang.String |
getStartupPath()
Gets the startup path, which is referred to by some external formula references.
|
static double |
getTextWidth(java.lang.String text,
Font font,
double scaling)
Get width of text in unit of points.
|
static Color[] |
getUsedColors(Workbook workbook)
Gets all used colors in the workbook.
|
static java.lang.String |
getVersion()
Get the release version.
|
static boolean |
isCloudPlatform()
Please set this property True when running on a cloud platform, such as: Azure, AWSLambda, etc,
|
static void |
mergeFiles(java.lang.String[] files,
java.lang.String cachedFile,
java.lang.String destFile)
Merges some large xls files to a xls file.
|
static boolean |
needQuoteInFormula(java.lang.String sheetName)
Indicates whether the name of the sheet should be enclosed in single quotes
|
static java.lang.String |
rowIndexToName(int row)
Gets row name according to row index.
|
static int |
rowNameToIndex(java.lang.String rowName)
Gets row index according to row name.
|
static void |
setAltStartPath(java.lang.String value)
Sets the alternate startup path, which is referred to by some external formula references.
|
static void |
setCacheFolder(java.lang.String cache)
Sets the folder for temporary files that may be used as data cache.
|
static void |
setCloudPlatform(boolean value)
Please set this property True when running on a cloud platform, such as: Azure, AWSLambda, etc,
|
static void |
setCustomImplementationFactory(CustomImplementationFactory value)
Sets the factory for creating instances with special implementation.
|
static void |
setDPI(double value)
Gets the DPI of the machine.
|
static void |
setLibraryPath(java.lang.String value)
Sets the library path which is referred to by some external formula references.
|
static void |
setSignificantDigits(int value)
Deprecated.
Use SignificantDigitsType property instead.
|
static void |
setSignificantDigitsType(int value)
Sets the default type of significant digits for outputing numeric values.
|
static void |
setStartupPath(java.lang.String value)
Sets the startup path, which is referred to by some external formula references.
|
public static int getSignificantDigits()
Remarks
Only could be 15 or 17 now. NOTE: This member is now obsolete. Instead, please useWorkbookSettings.getSignificantDigitsType().
This property will be removed 12 months later since June 2025.
Aspose apologizes for any inconvenience you may have experienced.public static void setSignificantDigits(int value)
Remarks
Only could be 15 or 17 now. NOTE: This member is now obsolete. Instead, please useWorkbookSettings.getSignificantDigitsType().
This property will be removed 12 months later since June 2025.
Aspose apologizes for any inconvenience you may have experienced.public static int getSignificantDigitsType()
SignificantDigitsType.G_17.
public static void setSignificantDigitsType(int value)
SignificantDigitsType.G_17.
public static double getDPI()
Remarks
public static void setDPI(double value)
Remarks
public static double getTextWidth(java.lang.String text,
Font font,
double scaling)
text - The text.font - The font of the text.scaling - The scaling of text.public static java.lang.String getVersion()
public static int[] cellNameToIndex(java.lang.String cellName)
cellName - Name of cellpublic static java.lang.String cellIndexToName(int row,
int column)
row - Row index.column - Column index.public static java.lang.String columnIndexToName(int column)
column - Column index.public static int columnNameToIndex(java.lang.String columnName)
columnName - Column name.public static java.lang.String rowIndexToName(int row)
row - Row index.public static int rowNameToIndex(java.lang.String rowName)
rowName - Row name.public static java.lang.String convertR1C1FormulaToA1(java.lang.String r1c1Formula,
int row,
int column)
Remarks
NOTE: This member is now obsolete. Instead, please use Worksheet.ConvertFormulaReferenceStyle() method. This property will be removed 12 months later since August 2023. Aspose apologizes for any inconvenience you may have experienced.r1c1Formula - The r1c1 formula.row - The row index of the cell.column - The column index of the cell.public static java.lang.String convertA1FormulaToR1C1(java.lang.String formula,
int row,
int column)
Remarks
NOTE: This member is now obsolete. Instead, please use Worksheet.ConvertFormulaReferenceStyle() method. This property will be removed 12 months later since August 2023. Aspose apologizes for any inconvenience you may have experienced.formula - The A1 formula.row - The row index of the cell.column - The column index of the cell.public static DateTime getDateTimeFromDouble(double doubleValue, boolean date1904)
doubleValue - The double value.date1904 - Date 1904 system.public static double getDoubleFromDateTime(DateTime dateTime, boolean date1904)
dateTime - The date time.date1904 - Date 1904 system.public static java.lang.String getStartupPath()
public static void setStartupPath(java.lang.String value)
public static java.lang.String getAltStartPath()
public static void setAltStartPath(java.lang.String value)
public static java.lang.String getLibraryPath()
public static void setLibraryPath(java.lang.String value)
public static Color[] getUsedColors(Workbook workbook)
workbook - The workbook object.public static CustomImplementationFactory getCustomImplementationFactory()
public static void setCustomImplementationFactory(CustomImplementationFactory value)
public static void addAddInFunction(java.lang.String function,
int minCountOfParameters,
int maxCountOfParameters,
int[] paramersType,
int functionValueType)
Remarks
NOTE: This member is now obsolete. Instead, please use WorksheetCollection.RegisterAddInFunction() methods. This method will be removed 12 months later since January 2022. Aspose apologizes for any inconvenience you may have experienced.function - The function name.minCountOfParameters - Minimum number of parameters this function requiresmaxCountOfParameters - Maximum number of parameters this function allows.paramersType - ParameterType. The excepted parameters type of the functionfunctionValueType - ParameterType. The function value type.public static void mergeFiles(java.lang.String[] files,
java.lang.String cachedFile,
java.lang.String destFile)
Remarks
This method only supports merging data, style and formulas to the new file. The cached file is used to store some temporary data.files - The files.cachedFile - The cached file.destFile - The dest file.public static java.lang.String getCacheFolder()
Remarks
Cache files are used generally for some features for memory performance consideration, such as saving large data set to xls file, or using memory mode with file cache for cells model.public static void setCacheFolder(java.lang.String cache)
Remarks
Cache files are used generally for some features for memory performance consideration, such as saving large data set to xls file, or using memory mode with file cache for cells model.cache - Folder for for temporary files that may be used as data cache.public static java.lang.String createSafeSheetName(java.lang.String nameProposal)
nameProposal - sheet name to be usedpublic static java.lang.String createSafeSheetName(java.lang.String nameProposal,
char replaceChar)
nameProposal - sheet name to be usedreplaceChar - character which will be used to replace invalid characters in given sheet namepublic static boolean needQuoteInFormula(java.lang.String sheetName)
sheetName - The name of the sheetpublic static boolean isCloudPlatform()
public static void setCloudPlatform(boolean 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.