You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
492 B
Go

2 years ago
package xlsx
type Row struct {
Cells []*Cell
Hidden bool
Sheet *Sheet
Height float64
OutlineLevel uint8
isCustom bool
}
func (r *Row) SetHeight(ht float64) {
r.Height = ht
r.isCustom = true
}
func (r *Row) SetHeightCM(ht float64) {
r.Height = ht * 28.3464567 // Convert CM to postscript points
r.isCustom = true
}
func (r *Row) AddCell() *Cell {
cell := NewCell(r)
r.Cells = append(r.Cells, cell)
r.Sheet.maybeAddCol(len(r.Cells))
return cell
}