finclip-app-manager/vendor/github.com/tealeg/xlsx/row.go

27 lines
492 B
Go
Raw Permalink Normal View History

2023-11-02 18:36:36 +08:00
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
}