Describes a view of a worksheet. Worksheets can have multiple views which show the data differently.
More...
|
| void | id (std::size_t new_id) |
| | Sets the ID of this view to new_id. More...
|
| |
| std::size_t | id () const |
| | Returns the ID of this view. More...
|
| |
| bool | has_pane () const |
| | Returns true if this view has a pane defined. More...
|
| |
| struct pane & | pane () |
| | Returns a reference to this view's pane. Assumes that this view has a pane (please call has_pane() to check). If this view does not have a pane, an xlnt::invalid_attribute exception will be thrown. More...
|
| |
| const struct pane & | pane () const |
| | Returns a reference to this view's pane. Assumes that this view has a pane (please call has_pane() to check). If this view does not have a pane, an xlnt::invalid_attribute exception will be thrown. More...
|
| |
| void | clear_pane () |
| | Removes the defined pane from this view. More...
|
| |
| void | pane (const struct pane &new_pane) |
| | Sets the pane of this view to new_pane. More...
|
| |
| bool | has_selections () const |
| | Returns true if this view has any selections. More...
|
| |
| void | add_selection (const class selection &new_selection) |
| | Adds the given selection to the collection of selections. More...
|
| |
| void | clear_selections () |
| | Removes all selections. More...
|
| |
| std::vector< xlnt::selection > | selections () const |
| | Returns the collection of selections as a vector. More...
|
| |
| class xlnt::selection & | selection (std::size_t index) |
| | Returns the selection at the given index (please call selections().size() if the number of selections is unknown). If the index is out of bounds, an invalid_parameter exception will be thrown. More...
|
| |
| void | show_grid_lines (bool show) |
| | If show is true, grid lines will be shown for sheets using this view. More...
|
| |
| bool | show_grid_lines () const |
| | Returns true if grid lines will be shown for sheets using this view. More...
|
| |
| void | default_grid_color (bool is_default) |
| | If is_default is true, the default grid color will be used. More...
|
| |
| bool | default_grid_color () const |
| | Returns true if the default grid color will be used. More...
|
| |
| void | type (sheet_view_type new_type) |
| | Sets the type of this view. More...
|
| |
| sheet_view_type | type () const |
| | Returns the type of this view. More...
|
| |
| bool | has_top_left_cell () const |
| | has a top left cell? More...
|
| |
| void | top_left_cell (const cell_reference &ref) |
| | Sets the top left cell of this view. More...
|
| |
| cell_reference | top_left_cell () const |
| | Returns the top left cell of this view. Assumes that this view has a top left (please call has_top_left_cell() to check). If this view does not have a top left cell, an xlnt::invalid_attribute exception will be thrown. More...
|
| |
| void | zoom_scale (int scale) |
| | Sets the zoom scale (percentage) for this view. More...
|
| |
| int | zoom_scale () const |
| | Returns the zoom scale (percentage). More...
|
| |
| bool | operator== (const sheet_view &rhs) const |
| | Returns true if this view is equal to rhs based on its id, grid lines setting, default grid color, pane, and selections. More...
|
| |
| bool | operator!= (const sheet_view &rhs) const |
| | Returns the negation of the equality operator. More...
|
| |
Describes a view of a worksheet. Worksheets can have multiple views which show the data differently.