Description
Margins (top, bottom, left, right) of all tabulation cells in a table, in millipoints.
It can be superseded by the Advance property on the cell level.
Syntax
object.Advance (iMargIndex, iRowType) [ =mValue ] |
object
Required. Object name, returned by Text.GetNewTable or Text.GetCurTable.
iMargIndex
0=top, 1=bottom, 2=left, 3=right.
iRowType
0 = Odd (defrow 0), 1 = First (defrow -2), 2 = Last (defrow -3), 3 = Even (defrow -1).
Please note that if you want to set the same values for entire table, use iRowType = 0, that corresponds to odd rows, but if it's only specified, than it sets all row types.
mValue
Value of margin.
Example
This script creates a new table with 4 columns and 8 rows, top margin of 2pt, bottom margin of 3pt, left margin of 4pt, right margin 5pt.
Dim objNewTable = Text.GetNewTable
objNewTable.NColumns = 4
objNewTable.NRows = 8
objNewTable.Advance(0,0) = 2000 ' margins for all cells (specified on odd row)
objNewTable.Advance(1,0) = 3000 ' margins for all cells (specified on odd row)
objNewTable.Advance(2,0) = 4000 ' margins for all cells (specified on odd row)
objNewTable.Advance(3,0) = 5000 ' margins for all cells (specified on odd row)
Text.InsTable (objNewTable)
See also
Advance on the cell level.