Version

InsertTableRows Method

Inserts a new table row before or after existing table row at documentOffset.
Syntax
'Declaration
 
Public Function InsertTableRows( _
   ByVal documentOffset As Integer, _
   ByVal numberOfRowsToInsert As Integer, _
   ByVal before As Boolean, _
   ByVal cellInitializer As Action(Of Integer,Integer,TableCellNode), _
   ByRef error As String _
) As TableRowNode()

Parameters

documentOffset
Document offset at which to insert new table. There must be a table at this offset.
numberOfRowsToInsert
The number of rows to insert
before
True inserts the new row before the row at documentOffset. False inserts it after the row at documentOffset.
cellInitializer
callback action that supplies the row index (relative to the rows being added), the cell index and the cell before each the cell is added to the row or each row is added to the table.
error
If there's an error, this out parameter is set to the error information.

Return Value

Newly inserted TableRowNode instance or null if there's an error, such as when there's no table at documentOffset.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also