|
xlnt - community edition
|
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... | |
| XLNT_DEPRECATED range_reference | sqref () const |
| Returns the range encompassed by this selection. If the range contains multiple (non-contiguous) regions, the first range is returned. Use sqrefs to obtain the full selection. More... | |
| const std::vector< range_reference > & | sqrefs () 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::vector< range_reference > &ref) |
| Sets the range encompassed by this selection. More... | |
| void | sqref (const std::string &ref) |
| Sets the range encompassed by this selection. The provided range should be a space delimited list of range references. E.g. "A1 B2:C3" 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... | |
| bool | operator!= (const selection &rhs) const |
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 the negation of the equality operator.
|
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. If the range contains multiple (non-contiguous) regions, the first range is returned. Use sqrefs to obtain the full selection.
<deprecated> Use sqrefs instead. </deprecated>
|
inline |
Sets the range encompassed by this selection.
|
inline |
Sets the range encompassed by this selection.
| void xlnt::selection::sqref | ( | const std::string & | ref | ) |
Sets the range encompassed by this selection. The provided range should be a space delimited list of range references. E.g. "A1 B2:C3"
|
inline |
Returns the range encompassed by this selection.
1.8.13