[]
• new NameInfo(name, expr, row, column, comment?, isReadOnly?)
Represents a custom named expression that can be used by formulas.
| Name | Type | Description |
|---|---|---|
name |
string |
The custom expression name. |
expr |
Expression |
The custom named expression. |
row |
number |
The base row of the expression. |
column |
number |
The base column of the expression. |
comment? |
string |
The custom expression comment. |
isReadOnly? |
boolean |
The custom expression could be editable. |
▸ getColumn(): number
Gets the base column of the custom named expression.
number
The base column.
▸ getComment(): string
Gets the comment of the current NameInfo object.
string
The name of the current NameInfo object.
▸ getExpression(): Expression
Gets the expression.
The expression.
▸ getName(): string
Gets the name of the current NameInfo object.
string
The name of the current NameInfo object.
▸ getRow(): number
Gets the base row of the custom named expression.
number
The base row.
▸ isReadOnly(value?): boolean
Gets/Sets the readonly status of the custom named expression.
| Name | Type | Description |
|---|---|---|
value? |
boolean |
Sets the readonly status of the custom named expression. |
boolean
The readonly status.
▸ set(name?, formula?, baseRow?, baseCol?, comment?): void
Rename the name, the formula, and the comment of the custom name.
| Name | Type | Description |
|---|---|---|
name? |
string |
The new name of the custom name, all referenced formulas will be updated. |
formula? |
string |
The new formula of the custom name, all referenced cells will be recalculated. |
baseRow? |
number |
The row index of the new formula. |
baseCol? |
number |
The column index of the new formula. |
comment? |
string |
The new custom comment. |
void