NewTable and CurTable Objects

Build 1501 on 14/Nov/2017  This topic last edited on: 9/May/2012, at 13:02

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

Name PropertyTable name.
NColumns PropertyThe number of columns of the table.
NRows PropertyThe number of rows of the table.
Edit MethodEdits the attributes with a dialog identical to the one used by the InsTableDlg command.
TabReset MethodResets the values inherited from a previous table in text (if any).

Margins

TableMargin PropertyTable margins.
Advance PropertyMargins of the tabulation cells in millipoints. It handles all four margins
RemoveTopLD PropertyAdjust the leading on top so the row content can be centered vertically.

Vertical justification of whole text

Add PropertyMaximum vertical space to be added above the rows.
Step PropertyTabulation rows height step in millipoints.
Sub PropertyMaximum vertical space that can be subtracted above the rows.

Vertical justification of cells

TopAdd PropertyMaximum space to be added above the text of the cells.
BottomAdd PropertyMaximum space to be added below the text of the cells.

Border rules

ExtRuleColor PropertyBorder color.
ExtRuleGray PropertyBorder color tint percentage.
ExtRuleDash PropertyBorder dash.
ExtRuleWidth PropertyBorder weight.

Fill color and shade

CellColor PropertyRow fill color.
CellGray PropertyRow fill color tint percentage .

Horizontal rules

HRuleColor PropertyHorizontal rule color.
HRuleGray PropertyHorizontal rule color tint percentage.
HRuleInside PropertyDetermine where to draw horizontal rules: within cell area, or under the cell area.
HRuleDash PropertyHorizontal rule dash.
HRuleWidth PropertyHorizontal rule weight.

Vertical rules

VRuleColor PropertyVertical rule color.
VRuleGray PropertyVertical rule tint percentage.
VRuleDash PropertyVertical rule dash.
VRuleWidth PropertyVertical rule weight.

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