Excel.Interfaces.RangeCollectionLoadOptions interface
Remarks
Properties
$all | Specifying |
address | For EACH ITEM in the collection: Specifies the range reference in A1-style. Address value contains the sheet reference (e.g., "Sheet1!A1:B4"). |
address |
For EACH ITEM in the collection: Represents the range reference for the specified range in the language of the user. |
cell |
For EACH ITEM in the collection: 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 |
For EACH ITEM in the collection: Specifies the total number of columns in the range. |
column |
For EACH ITEM in the collection: Represents if all columns in the current range are hidden. Value is |
column |
For EACH ITEM in the collection: Specifies the column number of the first cell in the range. Zero-indexed. |
data |
For EACH ITEM in the collection: Returns a data validation object. |
format | For EACH ITEM in the collection: Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. |
formulas | For EACH ITEM in the collection: Represents the formula in A1-style notation. If a cell has no formula, its value is returned instead. |
formulas |
For EACH ITEM in the collection: 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. |
formulasR1C1 | For EACH ITEM in the collection: Represents the formula in R1C1-style notation. If a cell has no formula, its value is returned instead. |
hidden | For EACH ITEM in the collection: Represents if all cells in the current range are hidden. Value is |
hyperlink | For EACH ITEM in the collection: Represents the hyperlink for the current range. |
is |
For EACH ITEM in the collection: Represents if the current range is an entire column. |
is |
For EACH ITEM in the collection: Represents if the current range is an entire row. |
linked |
For EACH ITEM in the collection: Represents the data type state of each cell. |
number |
For EACH ITEM in the collection: Represents Excel's number format code for the given range. For more information about Excel number formatting, see Number format codes. |
number |
For EACH ITEM in the collection: Represents Excel's number format code for the given range, based on the language settings of the user. Excel does not perform any language or format coercion when getting or setting the |
row |
For EACH ITEM in the collection: Returns the total number of rows in the range. |
row |
For EACH ITEM in the collection: Represents if all rows in the current range are hidden. Value is |
row |
For EACH ITEM in the collection: Returns the row number of the first cell in the range. Zero-indexed. |
style | For EACH ITEM in the collection: Represents the style of the current range. If the styles of the cells are inconsistent, |
text | For EACH ITEM in the collection: 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 | For EACH ITEM in the collection: 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 |
For EACH ITEM in the collection: Specifies the type of data in each cell. |
worksheet | For EACH ITEM in the collection: 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
For EACH ITEM in the collection: 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
For EACH ITEM in the collection: Represents the range reference for the specified range in the language of the user.
addressLocal?: boolean;
Property Value
boolean
Remarks
cellCount
For EACH ITEM in the collection: 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
For EACH ITEM in the collection: Specifies the total number of columns in the range.
columnCount?: boolean;
Property Value
boolean
Remarks
columnHidden
For EACH ITEM in the collection: Represents if all columns in the current range are hidden. Value is true
when all columns in a range are hidden. Value is false
when no columns in the range are hidden. Value is null
when some columns in a range are hidden and other columns in the same range are not hidden.
columnHidden?: boolean;
Property Value
boolean
Remarks
columnIndex
For EACH ITEM in the collection: Specifies the column number of the first cell in the range. Zero-indexed.
columnIndex?: boolean;
Property Value
boolean
Remarks
dataValidation
For EACH ITEM in the collection: Returns a data validation object.
dataValidation?: Excel.Interfaces.DataValidationLoadOptions;
Property Value
Remarks
format
For EACH ITEM in the collection: Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties.
format?: Excel.Interfaces.RangeFormatLoadOptions;
Property Value
Remarks
formulas
For EACH ITEM in the collection: 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
For EACH ITEM in the collection: 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
formulasR1C1
For EACH ITEM in the collection: Represents the formula in R1C1-style notation. If a cell has no formula, its value is returned instead.
formulasR1C1?: boolean;
Property Value
boolean
Remarks
hidden
For EACH ITEM in the collection: Represents if all cells in the current range are hidden. Value is true
when all cells in a range are hidden. Value is false
when no cells in the range are hidden. Value is null
when some cells in a range are hidden and other cells in the same range are not hidden.
hidden?: boolean;
Property Value
boolean
Remarks
hyperlink
For EACH ITEM in the collection: Represents the hyperlink for the current range.
hyperlink?: boolean;
Property Value
boolean
Remarks
isEntireColumn
For EACH ITEM in the collection: Represents if the current range is an entire column.
isEntireColumn?: boolean;
Property Value
boolean
Remarks
isEntireRow
For EACH ITEM in the collection: Represents if the current range is an entire row.
isEntireRow?: boolean;
Property Value
boolean
Remarks
linkedDataTypeState
For EACH ITEM in the collection: Represents the data type state of each cell.
linkedDataTypeState?: boolean;
Property Value
boolean
Remarks
numberFormat
For EACH ITEM in the collection: 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
numberFormatLocal
For EACH ITEM in the collection: Represents Excel's number format code for the given range, based on the language settings of the user. Excel does not perform any language or format coercion when getting or setting the numberFormatLocal
property. Any returned text uses the locally-formatted strings based on the language specified in the system settings.
numberFormatLocal?: boolean;
Property Value
boolean
Remarks
rowCount
For EACH ITEM in the collection: Returns the total number of rows in the range.
rowCount?: boolean;
Property Value
boolean
Remarks
rowHidden
For EACH ITEM in the collection: Represents if all rows in the current range are hidden. Value is true
when all rows in a range are hidden. Value is false
when no rows in the range are hidden. Value is null
when some rows in a range are hidden and other rows in the same range are not hidden.
rowHidden?: boolean;
Property Value
boolean
Remarks
rowIndex
For EACH ITEM in the collection: Returns the row number of the first cell in the range. Zero-indexed.
rowIndex?: boolean;
Property Value
boolean
Remarks
style
For EACH ITEM in the collection: Represents the style of the current range. If the styles of the cells are inconsistent, null
will be returned. For custom styles, the style name will be returned. For built-in styles, a string representing a value in the BuiltInStyle
enum will be returned.
style?: boolean;
Property Value
boolean
Remarks
text
For EACH ITEM in the collection: 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
For EACH ITEM in the collection: 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
For EACH ITEM in the collection: Specifies the type of data in each cell.
valueTypes?: boolean;
Property Value
boolean
Remarks
worksheet
For EACH ITEM in the collection: The worksheet containing the current range.
worksheet?: Excel.Interfaces.WorksheetLoadOptions;
Property Value
Remarks
Office Add-ins