Skip to content

Conversation

@BassP97
Copy link

@BassP97 BassP97 commented Jun 5, 2025

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
Copy link
Author

BassP97 commented Sep 23, 2025

Bump! I'd love to merge this :)

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.

1 participant