ExcelScript.CustomProperty interface
Represents a custom property.
Methods
delete() | Deletes the custom property. |
get |
The key of the custom property. The key is limited to 255 characters outside of Excel on the web (larger keys are automatically trimmed to 255 characters on other platforms). |
get |
The type of the value used for the custom property. |
get |
The value of the custom property. The value is limited to 255 characters outside of Excel on the web (larger values are automatically trimmed to 255 characters on other platforms). |
set |
The value of the custom property. The value is limited to 255 characters outside of Excel on the web (larger values are automatically trimmed to 255 characters on other platforms). |
Method Details
delete()
Deletes the custom property.
delete(): void;
Returns
void
getKey()
The key of the custom property. The key is limited to 255 characters outside of Excel on the web (larger keys are automatically trimmed to 255 characters on other platforms).
getKey(): string;
Returns
string
getType()
The type of the value used for the custom property.
getType(): DocumentPropertyType;
Returns
getValue()
The value of the custom property. The value is limited to 255 characters outside of Excel on the web (larger values are automatically trimmed to 255 characters on other platforms).
getValue(): any;
Returns
any
setValue(value)
The value of the custom property. The value is limited to 255 characters outside of Excel on the web (larger values are automatically trimmed to 255 characters on other platforms).
setValue(value: any): void;
Parameters
- value
-
any
Returns
void
Office Scripts