The NewTable and the CurTable object provide creation of new tables with specific attributes, or editing of the current table, similarly to what is achieved with the InsTableDlg or EditTableMainDlg commands.
These objects are available in Ted and Fred.
Methods and properties
Basics
Edit Method | Edits the attributes with a dialog identical to the one used by the InsTableDlg command. |
TabReset Method | Resets the values inherited from a previous table in text (if any). |
Margins
Advance Property | Margins of the tabulation cells in millipoints. It handles all four margins |
Vertical justification of whole text
Add Property | Maximum vertical space to be added above the rows. |
Sub Property | Maximum vertical space that can be subtracted above the rows. |
Vertical justification of cells
Border rules
Fill color and shade
Horizontal rules
HRuleInside Property | Determine where to draw horizontal rules: within cell area, or under the cell area. |
Vertical rules
To create a NewTable object
dim objNewTable = Text.GetNewTable
To create a CurTable object
Dim objCurTable = Text.GetCurTable
See also
Overview of NewTable and CurTable object
TableColumn object
TableRow object
TableCell object