We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5608e05 commit 391e630Copy full SHA for 391e630
src/PhpSpreadsheet/Worksheet/Worksheet.php
@@ -2581,6 +2581,22 @@ public function setComments(array $comments)
2581
2582
return $this;
2583
}
2584
+
2585
2586
+ /**
2587
+ * Remove comment.
2588
+ *
2589
+ * @param int $columnIndex Numeric column coordinate of the cell
2590
+ * @param int $row Numeric row coordinate of the cell
2591
2592
+ */
2593
+ public function removeCommentByColumnAndRow($columnIndex, $row)
2594
+ {
2595
+ $pCellCoordinate = strtoupper(Coordinate::stringFromColumnIndex($columnIndex) . $row);
2596
+ if(isset($this->comments[$pCellCoordinate])) {
2597
+ unset($this->comments[$pCellCoordinate]);
2598
+ }
2599
2600
2601
/**
2602
* Get comment for cell.
0 commit comments