xlnt
|
The selected area of a worksheet. More...
#include <selection.hpp>
Public Member Functions | |
selection ()=default | |
default ctor More... | |
selection (pane_corner quadrant, cell_reference active_cell) | |
ctor when no range selected sqref == active_cell More... | |
selection (pane_corner quadrant, cell_reference active_cell, range_reference selected) | |
ctor with selected range sqref must contain active_cell More... | |
bool | has_active_cell () const |
Returns true if this selection has a defined active cell. More... | |
cell_reference | active_cell () const |
Returns the cell reference of the active cell. More... | |
void | active_cell (const cell_reference &ref) |
Sets the active cell to that pointed to by ref. More... | |
bool | has_sqref () const |
Returns true if this selection has a defined sqref. More... | |
range_reference | sqref () const |
Returns the range encompassed by this selection. More... | |
void | sqref (const range_reference &ref) |
Sets the range encompassed by this selection. More... | |
void | sqref (const std::string &ref) |
Sets the range encompassed by this selection. More... | |
pane_corner | pane () const |
Returns the sheet quadrant of this selection. More... | |
void | pane (pane_corner corner) |
Sets the sheet quadrant of this selection to corner. More... | |
bool | operator== (const selection &rhs) const |
Returns true if this selection is equal to rhs based on its active cell, sqref, and pane. More... | |
The selected area of a worksheet.
|
explicitdefault |
default ctor
|
inlineexplicit |
ctor when no range selected sqref == active_cell
|
inlineexplicit |
ctor with selected range sqref must contain active_cell
|
inline |
Returns the cell reference of the active cell.
|
inline |
Sets the active cell to that pointed to by ref.
|
inline |
Returns true if this selection has a defined active cell.
|
inline |
Returns true if this selection has a defined sqref.
|
inline |
Returns true if this selection is equal to rhs based on its active cell, sqref, and pane.
|
inline |
Returns the sheet quadrant of this selection.
|
inline |
Sets the sheet quadrant of this selection to corner.
|
inline |
Returns the range encompassed by this selection.
|
inline |
Sets the range encompassed by this selection.
|
inline |
Sets the range encompassed by this selection.