MCPcopy
hub / github.com/qax-os/excelize / SetSheetRow

Method SetSheetRow

cell.go:1428–1430  ·  view source on GitHub ↗

SetSheetRow writes an array to row by given worksheet name, starting cell reference and a pointer to array type 'slice'. This function is concurrency safe. For example, writes an array to row 6 start with the cell B6 on Sheet1: err := f.SetSheetRow("Sheet1", "B6", &[]interface{}{"1", nil, 2})

(sheet, cell string, slice interface{})

Source from the content-addressed store, hash-verified

1426//
1427// err := f.SetSheetRow("Sheet1", "B6", &[]interface{}{"1", nil, 2})
1428func (f *File) SetSheetRow(sheet, cell string, slice interface{}) error {
1429 return f.setSheetCells(sheet, cell, slice, rows)
1430}
1431
1432// SetSheetCol writes an array to column by given worksheet name, starting
1433// cell reference and a pointer to array type 'slice'. For example, writes an

Callers 15

TestNewStyleFunction · 0.95
TestAddChartFunction · 0.95
prepareSparklineDatasetFunction · 0.95
TestPivotTableFunction · 0.95
TestPivotTableDataRangeFunction · 0.95
TestSlicerFunction · 0.95
TestDataValidationFunction · 0.95
TestAdjustColsFunction · 0.95
TestAdjustFormulaFunction · 0.95
TestCalcArrayFormulaFunction · 0.95

Calls 1

setSheetCellsMethod · 0.95

Tested by 15

TestNewStyleFunction · 0.76
TestAddChartFunction · 0.76
prepareSparklineDatasetFunction · 0.76
TestPivotTableFunction · 0.76
TestPivotTableDataRangeFunction · 0.76
TestSlicerFunction · 0.76
TestDataValidationFunction · 0.76
TestAdjustColsFunction · 0.76
TestAdjustFormulaFunction · 0.76
TestCalcArrayFormulaFunction · 0.76