Alias xlnt::cell_type to xlnt::cell::type since it looks nicer.
Returns a map of error strings such as #DIV/0! and their associated indices.
Default copy constructor.
Returns true if value has been set and has not been cleared using cell::clear_value().
Returns the value of this cell as an instance of type T. Overloads exist for most C++ fundamental types like bool, int, etc. as well as for std::string and xlnt datetime types: date, time, datetime, and timedelta.
Makes this cell have a value of type null. All other cell attributes are retained.
Sets the type of this cell to null.
Sets the value of this cell to the given boolean value.
Sets the value of this cell to the given value.
Sets the value of this cell to the given value.
Sets the value of this cell to the given value.
Sets the value of this cell to the given value.
Sets the value of this cell to the given value.
Sets the value of this cell to the given value.
Sets the value of this cell to the given value.
Sets the value of this cell to the given value.
Sets the value of this cell to the given value.
Sets the value of this cell to the given value.
Sets the value of this cell to the given value.
Sets the value of this cell to the given value.
Sets the value of this cell to the given value.
Sets the value of this cell to the given value.
Sets the value and formatting of this cell to that of other_cell.
Analyzes string_value to determine its type, convert it to that type, and set the value of this cell to that converted value.
Returns the type of this cell.
Sets the type of this cell. This should usually be done indirectly by setting the value of the cell to a value of that type.
There's no reason to keep a cell which has no value and is not a placeholder. Returns true if this cell has no value, style, isn't merged, etc.
Returns true iff this cell's number format matches a date format.
Returns a cell_reference that points to the location of this cell.
Returns the column of this cell.
Returns the row of this cell.
Returns the location of this cell as an ordered pair (left, top).
Returns the URL of this cell's hyperlink.
Adds a hyperlink to this cell pointing to the URL of the given value.
Adds a hyperlink to this cell pointing to the URI of the given value and sets the text value of the cell to the given parameter.
Adds an internal hyperlink to this cell pointing to the given cell.
Returns true if this cell has a hyperlink set.
Returns the alignment that should be used when displaying this cell graphically based on the workbook default, the cell-level format, and the named style applied to the cell in that order.
Returns the border that should be used when displaying this cell graphically based on the workbook default, the cell-level format, and the named style applied to the cell in that order.
Returns the fill that should be used when displaying this cell graphically based on the workbook default, the cell-level format, and the named style applied to the cell in that order.
Returns the font that should be used when displaying this cell graphically based on the workbook default, the cell-level format, and the named style applied to the cell in that order.
Returns the number format that should be used when displaying this cell graphically based on the workbook default, the cell-level format, and the named style applied to the cell in that order.
Returns the protection that should be used when displaying this cell graphically based on the workbook default, the cell-level format, and the named style applied to the cell in that order.
Returns true if this cell has had a format applied to it.
Returns the format applied to this cell. If this cell has no format, an invalid_attribute exception will be thrown.
Applies the cell-level formatting of new_format to this cell.
Removes the cell-level formatting from this cell. This doesn't affect the style that may also be applied to the cell. Throws an invalid_attribute exception if no format is applied.
Returns the number format of this cell.
Creates a new format in the workbook, sets its number_format to the given format, and applies the format to this cell.
Returns the font applied to the text in this cell.
Creates a new format in the workbook, sets its font to the given font, and applies the format to this cell.
Returns the fill applied to this cell.
Creates a new format in the workbook, sets its fill to the given fill, and applies the format to this cell.
Returns the border of this cell.
Creates a new format in the workbook, sets its border to the given border, and applies the format to this cell.
Returns the alignment of the text in this cell.
Creates a new format in the workbook, sets its alignment to the given alignment, and applies the format to this cell.
Returns the protection of this cell.
Creates a new format in the workbook, sets its protection to the given protection, and applies the format to this cell.
Returns true if this cell has had a style applied to it.
Returns a wrapper pointing to the named style applied to this cell.
Returns a wrapper pointing to the named style applied to this cell.
Sets the named style applied to this cell to a style named style_name. Equivalent to style(new_style.name()).
Sets the named style applied to this cell to a style named style_name. If this style has not been previously created in the workbook, a key_not_found exception will be thrown.
Removes the named style from this cell. An invalid_attribute exception will be thrown if this cell has no style. This will not affect the cell format of the cell.
Returns the string representation of the formula applied to this cell.
Sets the formula of this cell to the given value. This formula string should begin with '='.
Removes the formula from this cell. After this is called, has_formula() will return false.
Returns true if this cell has had a formula applied to it.
Returns a string representing the value of this cell. If the data type is not a string, it will be converted according to the number format.
Returns true iff this cell has been merged with one or more surrounding cells.
Makes this a merged cell iff merged is true. Generally, this shouldn't be called directly. Instead, use worksheet::merge_cells on its parent worksheet.
Returns the error string that is stored in this cell.
Directly assigns the value of this cell to be the given error.
Returns a cell from this cell's parent workbook at a relative offset given by the parameters.
Returns the worksheet that owns this cell.
Returns the worksheet that owns this cell.
Returns the workbook of the worksheet that owns this cell.
Returns the workbook of the worksheet that owns this cell.
Returns the base date of the parent workbook.
Returns to_check after verifying and fixing encoding, size, and illegal characters.
Returns true if this cell has a comment applied.
Deletes the comment applied to this cell if it exists.
Gets the comment applied to this cell.
void xlnt::cell::comment(const std::string &text, const std::string &author="Microsoft Office User")
Creates a new comment with the given text and optional author and applies it to the cell.
void xlnt::cell::comment(const std::string &comment_text, const class font &comment_font, const std::string &author="Microsoft Office User")
Creates a new comment with the given text, formatting, and optional author and applies it to the cell.
Apply the comment provided as the only argument to the cell.
Returns the width of this cell in pixels.
Returns the height of this cell in pixels.
Makes this cell interally point to rhs. The cell data originally pointed to by this cell will be unchanged.
Returns true if this cell the same cell as comparand (compared by reference).
Returns true if this cell is uninitialized.