summaryrefslogtreecommitdiff
path: root/rows.go
diff options
context:
space:
mode:
Diffstat (limited to 'rows.go')
-rw-r--r--rows.go14
1 files changed, 13 insertions, 1 deletions
diff --git a/rows.go b/rows.go
index 3984216..aebc979 100644
--- a/rows.go
+++ b/rows.go
@@ -343,6 +343,10 @@ func (f *File) GetRowOutlineLevel(sheet string, rowIndex int) uint8 {
//
// xlsx.RemoveRow("Sheet1", 2)
//
+// Use this method with caution, which will affect changes in references such
+// as formulas, charts, and so on. If there is any referenced value of the
+// worksheet, it will cause a file error when you open it. The excelize only
+// partially updates these references currently.
func (f *File) RemoveRow(sheet string, row int) {
if row < 0 {
return
@@ -375,15 +379,23 @@ func (f *File) InsertRow(sheet string, row int) {
//
// xlsx.DuplicateRow("Sheet1", 2)
//
+// Use this method with caution, which will affect changes in references such
+// as formulas, charts, and so on. If there is any referenced value of the
+// worksheet, it will cause a file error when you open it. The excelize only
+// partially updates these references currently.
func (f *File) DuplicateRow(sheet string, row int) {
f.DuplicateRowTo(sheet, row, row+1)
}
// DuplicateRowTo inserts a copy of specified row at specified row position
-// movig down exists rows aftet target position
+// moving down exists rows after target position
//
// xlsx.DuplicateRowTo("Sheet1", 2, 7)
//
+// Use this method with caution, which will affect changes in references such
+// as formulas, charts, and so on. If there is any referenced value of the
+// worksheet, it will cause a file error when you open it. The excelize only
+// partially updates these references currently.
func (f *File) DuplicateRowTo(sheet string, row, row2 int) {
if row <= 0 || row2 <= 0 || row == row2 {
return