Break any multi-column cells in the range into individual cells again.
Clears the range of contents, formats, and data-validation rules.
Clears the range of contents, format, data-validation rules, and/or comments, as specified with the given advanced options. By default all data will be cleared.
Returns a string description of the range, in A1 notation.
Returns the background color of the top-left cell in the range.
Returns the background colors of the cells in the range.
Returns a given cell within a range.
Returns the starting column position for this range.
Returns the data-validation rule for the top-left cell in the range. If data validation has not been set on the cell, this method returns null.
Returns the data-validation rule for the top-left cell in the range. If data validation has not been set on the cell, this method returns null. TODO: return null...
Returns the displayed value of the top-left cell in the range. The value will be of type String.
display value
Returns the rectangular grid of values for this range.
a two-dimensional array of values
Returns the font color of the cell in the top-left corner of the range.
Returns the font colors of the cells in the range
font colors
Returns the font families of the cells in the range.
font families
Returns the font family of the cell in the top-left corner of the range.
Gets the line style of the cell in the top-left corner of the range.
Gets the line style of the cells in the range.
font lines
Returns the font size in point size of the cell in the top-left corner of the range.
Returns the font sizes of the cells in the range.
font sizes
Returns the font style ('italic' or 'normal') of the cell in the top-left corner of the range.
Returns the font styles of the cells in the range.
font styles
Returns the font weight (normal/bold) of the cell in the top-left corner of the range.
Returns the font weights of the cells in the range.
font weights
Returns the formula (A1 notation) for the top-left cell of the range, or an empty string if the cell is empty or doesn't contain a formula.
Returns the formula (R1C1 notation) for a given cell, or null if none.
Returns the formulas (A1 notation) for the cells in the range. Entries in the 2D array will be an empty string for cells with no formula.
formulas
Returns the formulas (R1C1 notation) for the cells in the range.
formulas
Returns the height of the range.
Returns the horizontal alignment of the text (left/center/right) of the cell in the top-left corner of the range.
Returns the horizontal alignments of the cells in the range.
font weights
Returns the end column position.
Returns the end row position.
Returns an array of Range objects representing merged cells that either are fully within the current range, or contain at least one cell in the current range."
Returns the note associated with the given range.
Returns the notes associated with the cells in the range.
notes
Returns the number of columns in this range.
Returns the number of rows in this range.
Get the number or date formatting of the top-left cell of the given range.
Returns the number or date formats for the cells in the range.
Returns the row position for this range.
Returns the row position for this range.
Returns the vertical alignment (top/middle/bottom) of the cell in the top-left corner of the range.
Returns the vertical alignments of the cells in the range.
alignments
Returns the width of the range in columns.
the number of columns in the range
Inserts a column after the given column position.
Inserts a number of columns after the given column position.
Inserts a row after the given column position.
Inserts a number of rows after the given column position.
Merges the cells in the range together into a single block.
Merge the cells in the range across the columns of the range.
Merges the cells in the range together.
Cut and paste (both format and values) from this range to the target range.
Sets the background color of all cells in the range in CSS notation (like '#ffffff' or 'white').
Sets a rectangular lib of background colors (must match dimensions of this range). The colors are in CSS notation (like '#ffffff' or 'white').
Sets one data-validation rule for all cells in the range.
Sets the data-validation rules for all cells in the range.
Sets the font color in CSS notation (like '#ffffff' or 'white').
Sets a rectangular lib of font colors (must match dimensions of this range). The colors are in CSS notation (like '#ffffff' or 'white').
Sets a rectangular lib of font families (must match dimensions of this range). Examples of font families are "Arial" or "Helvetica".
Sets the font family, such as "Arial" or "Helvetica".
Sets the font line style of the given range ('underline', 'line-through', or 'none').
Sets a rectangular lib of line styles (must match dimensions of this range).
Sets the font size, with the size being the point size to use.
Sets a rectangular lib of font sizes (must match dimensions of this range). The sizes are in points.
Set the font style for the given range ('italic' or 'normal').
Sets a rectangular lib of font styles (must match dimensions of this range).
Set the font weight for the given range (normal/bold).
Sets a rectangular lib of font weights (must match dimensions of this range). An example of a font weight is "bold".
Updates the formula for this range.
Updates the formula for this range.
Sets a rectangular lib of formulas (must match dimensions of this range)
Sets a rectangular lib of formulas (must match dimensions of this range)
Set the horizontal (left to right) alignment for the given range (left/center/right).
Sets a rectangular lib of horizontal alignments.
Sets the note to the given value.
Sets a rectangular lib of notes (must match dimensions of this range).
Sets the number or date format to the given formatting string.
Sets a rectangular lib of number or date formats (must match dimensions of this range).
Sets the value of the range. The value can be numeric, string, boolean or date. If it begins with '=' it is interpreted as a formula.
TODO: formula
Sets a rectangular lib of values (must match dimensions of this range).
Set the vertical (left to right) alignment for the given range (left/center/right).
Sets a rectangular lib of vertical alignments.
Generated using TypeDoc
Range class.