Excel.Interfaces.RangeLoadOptions interface
Range represents a set of one or more contiguous cells such as a cell, a row, a column, or a block of cells. To learn more about how ranges are used throughout the API, start with Ranges in the Excel JavaScript API.
Remarks
Properties
$all | Specifying |
address | Specifies the range reference in A1-style. Address value contains the sheet reference (e.g., "Sheet1!A1:B4"). |
address |
Represents the range reference for the specified range in the language of the user. |
cell |
Specifies the number of cells in the range. This API will return -1 if the cell count exceeds 2^31-1 (2,147,483,647). |
column |
Specifies the total number of columns in the range. |
column |
Specifies the column number of the first cell in the range. Zero-indexed. |
format | Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. |
formulas | Represents the formula in A1-style notation. If a cell has no formula, its value is returned instead. |
formulas |
Represents the formula in A1-style notation, in the user's language and number-formatting locale. For example, the English "=SUM(A1, 1.5)" formula would become "=SUMME(A1; 1,5)" in German. If a cell has no formula, its value is returned instead. |
number |
Represents Excel's number format code for the given range. For more information about Excel number formatting, see Number format codes. |
row |
Returns the total number of rows in the range. |
row |
Returns the row number of the first cell in the range. Zero-indexed. |
text | Text values of the specified range. The text value will not depend on the cell width. The number sign (#) substitution that happens in the Excel UI will not affect the text value returned by the API. |
values | Represents the raw values of the specified range. The data returned could be a string, number, or boolean. Cells that contain an error will return the error string. If the returned value starts with a plus ("+"), minus ("-"), or equal sign ("="), Excel interprets this value as a formula. |
value |
Specifies the type of data in each cell. |
worksheet | The worksheet containing the current range. |
Property Details
$all
Specifying $all
for the load options loads all the scalar properties (such as Range.address
) but not the navigational properties (such as Range.format.fill.color
).
$all?: boolean;
Property Value
boolean
address
Specifies the range reference in A1-style. Address value contains the sheet reference (e.g., "Sheet1!A1:B4").
address?: boolean;
Property Value
boolean
Remarks
addressLocal
Represents the range reference for the specified range in the language of the user.
addressLocal?: boolean;
Property Value
boolean
Remarks
cellCount
Specifies the number of cells in the range. This API will return -1 if the cell count exceeds 2^31-1 (2,147,483,647).
cellCount?: boolean;
Property Value
boolean
Remarks
columnCount
Specifies the total number of columns in the range.
columnCount?: boolean;
Property Value
boolean
Remarks
columnIndex
Specifies the column number of the first cell in the range. Zero-indexed.
columnIndex?: boolean;
Property Value
boolean
Remarks
format
Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties.
format?: Excel.Interfaces.RangeFormatLoadOptions;
Property Value
Remarks
formulas
Represents the formula in A1-style notation. If a cell has no formula, its value is returned instead.
formulas?: boolean;
Property Value
boolean
Remarks
formulasLocal
Represents the formula in A1-style notation, in the user's language and number-formatting locale. For example, the English "=SUM(A1, 1.5)" formula would become "=SUMME(A1; 1,5)" in German. If a cell has no formula, its value is returned instead.
formulasLocal?: boolean;
Property Value
boolean
Remarks
numberFormat
Represents Excel's number format code for the given range. For more information about Excel number formatting, see Number format codes.
numberFormat?: boolean;
Property Value
boolean
Remarks
rowCount
Returns the total number of rows in the range.
rowCount?: boolean;
Property Value
boolean
Remarks
rowIndex
Returns the row number of the first cell in the range. Zero-indexed.
rowIndex?: boolean;
Property Value
boolean
Remarks
text
Text values of the specified range. The text value will not depend on the cell width. The number sign (#) substitution that happens in the Excel UI will not affect the text value returned by the API.
text?: boolean;
Property Value
boolean
Remarks
values
Represents the raw values of the specified range. The data returned could be a string, number, or boolean. Cells that contain an error will return the error string. If the returned value starts with a plus ("+"), minus ("-"), or equal sign ("="), Excel interprets this value as a formula.
values?: boolean;
Property Value
boolean
Remarks
valueTypes
Specifies the type of data in each cell.
valueTypes?: boolean;
Property Value
boolean
Remarks
worksheet
The worksheet containing the current range.
worksheet?: Excel.Interfaces.WorksheetLoadOptions;
Property Value
Remarks
Office Add-ins