mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-17 21:46:37 +00:00
Add removeCommentByColumnAndRow function
This commit is contained in:
@@ -2581,6 +2581,22 @@ class Worksheet implements IComparable
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Remove comment.
|
||||
*
|
||||
* @param int $columnIndex Numeric column coordinate of the cell
|
||||
* @param int $row Numeric row coordinate of the cell
|
||||
*
|
||||
*/
|
||||
public function removeCommentByColumnAndRow($columnIndex, $row)
|
||||
{
|
||||
$pCellCoordinate = strtoupper(Coordinate::stringFromColumnIndex($columnIndex) . $row);
|
||||
if(isset($this->comments[$pCellCoordinate])) {
|
||||
unset($this->comments[$pCellCoordinate]);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get comment for cell.
|
||||
|
||||
Reference in New Issue
Block a user