row.go 336 B

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