Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docx/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@ type Row struct {
ct ctypes.Row
}

// getCt returns a pointer to the underlying Row Complex Type.
func (r *Row) GetCt() *ctypes.Row {
return &r.ct
}

// Add Cell to row and returns Cell
func (r *Row) AddCell() *Cell {
cell := Cell{
Expand All @@ -219,6 +224,11 @@ type Cell struct {
ct ctypes.Cell
}

// getCt returns a pointer to the underlying Cell Complex Type.
func (c *Cell) GetCt() *ctypes.Cell {
return &c.ct
}

// Adds paragraph with text and returns Paragraph
func (c *Cell) AddParagraph(text string) *Paragraph {
p := newParagraph(c.root, paraWithText(text))
Expand Down