add column_index to cell to be consistent with cell_reference

Issue #298
The consistency argument is a good one in my opinion
This commit is contained in:
Crzyrndm 2018-07-03 11:10:47 +12:00
parent fb195e2777
commit 688c8c7f33
2 changed files with 10 additions and 0 deletions

View File

@ -240,6 +240,11 @@ public:
/// </summary>
column_t column() const;
/// <summary>
/// Returns the numeric index (A == 1) of the column of this cell.
/// </summary>
column_t::index_t column_index() const;
/// <summary>
/// Returns the row of this cell.
/// </summary>

View File

@ -314,6 +314,11 @@ column_t cell::column() const
return d_->column_;
}
column_t::index_t cell::column_index() const
{
return d_->column_.index;
}
void cell::merged(bool merged)
{
d_->is_merged_ = merged;