[]
Ƭ GetFileFunctionType: (filePath
: string
) => File
| Blob
▸ (filePath
): File
| Blob
description
get file by file path.
Name | Type | Description |
---|---|---|
filePath |
string |
the file path. |
File
| Blob
Ƭ GetPartialValuesErrorCallbackType: (errorMsg
: string
) => void
▸ (errorMsg
): void
description
the error callback of get partial values.
Name | Type | Description |
---|---|---|
errorMsg |
string |
the error message. |
void
Ƭ GetPartialValuesSuccessCallbackType: (externalValues
: ExternalPartialValues
) => void
▸ (externalValues
): void
description
the success callback of get partial values.
Name | Type | Description |
---|---|---|
externalValues |
ExternalPartialValues |
the external value list. |
void
▸ getPartialValues(refList
, getFile
, getPartialValuesSuccessCallback
, getPartialValuesErrorCallback
): void
Gets the the values of specific reference path list from file directly.
static
example
function getFile (path) {
// return file by path
}
let refList = spread.getExternalReferences(true);
GC.Spread.Sheets.IO.getPartialValues(refList, getFile, (externalValues) => {
// successCallback
spread.updateExternalReference(externalValues);
}, (errorMsg) => {
// errorCallback
console.log(errorMsg);
});
Name | Type | Description |
---|---|---|
refList |
IExternalReference [] |
The array of external reference. |
getFile |
GetFileFunctionType |
The function which return file or blob by the specified file path. |
getPartialValuesSuccessCallback |
GetPartialValuesSuccessCallbackType |
The success callback function which called when get values successfully. |
getPartialValuesErrorCallback |
GetPartialValuesErrorCallbackType |
The error callback function which called when get values failed. |
void
▸ registerMaxDigitWidth(fontFamily
, fontSize
, maxDigitWidth
): void
Register a unknown max digit width info to IO.
Name | Type | Description |
---|---|---|
fontFamily |
string |
The font family of default style's font. |
fontSize |
number |
The font size of default style's font(in point). |
maxDigitWidth |
number |
The max digit width of default style's font. |
void