row.go 378 B

123456789101112131415161718192021
  1. package xlsx
  2. type Row struct {
  3. Cells []*Cell
  4. Hidden bool
  5. Sheet *Sheet
  6. Height float64
  7. IsCustom bool
  8. }
  9. func (r *Row) SetHeightCM(ht float64) {
  10. r.Height = ht * 28.3464567 // Convert CM to postscript points
  11. r.IsCustom = true
  12. }
  13. func (r *Row) AddCell() *Cell {
  14. cell := NewCell(r)
  15. r.Cells = append(r.Cells, cell)
  16. r.Sheet.maybeAddCol(len(r.Cells))
  17. return cell
  18. }