Skip to content

Expose row and cell complex types#67

Open
BassP97 wants to merge 1 commit into
gomutex:mainfrom
BassP97:feature/expose-cell-and-row
Open

Expose row and cell complex types#67
BassP97 wants to merge 1 commit into
gomutex:mainfrom
BassP97:feature/expose-cell-and-row

Conversation

@BassP97

@BassP97 BassP97 commented Jun 5, 2025

Copy link
Copy Markdown

This MR, once merged, will allow for more advanced table row/cell manipulation and formatting, including, eg, row height:

    rowCt := row.GetCt()
    rowCt.Property.Height = ctypes.NewTableRowHeight(500, stypes.HeightRuleExact)

And cell width:

    cell1Ct := cell1.GetCt()
    cell2Ct := cell2.GetCt()
    cell3Ct := cell3.GetCt()

    cell1Ct.Property.Width = ctypes.NewTableWidth(2000, stypes.TableWidthDxa)
    cell2Ct.Property.Width = ctypes.NewTableWidth(3000, stypes.TableWidthP
    cell3Ct.Property.Width = ctypes.NewTableWidth(0, stypes.TableWidthAuto)

It might be cleaner to expose cell-row level apis for different props... but this is simple and straightforward :)

@BassP97

BassP97 commented Sep 23, 2025

Copy link
Copy Markdown
Author

Bump! I'd love to merge this :)

@krishnadubagunta

Copy link
Copy Markdown

@gomutex Bump!! This would be of great help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants