Version

StartTable(Int32) Method

Starts a new table in the document with the specified number of columns.
Syntax
'Declaration
 
Public Overloads Sub StartTable( _
   ByVal columnCount As Integer _
) 
public void StartTable( 
   int columnCount
)

Parameters

columnCount
The total number of columns in the table. Columns added with this overload have a width of one inch. Note that by default, actual column widths are determined automatically; to override this behavior and apply explicit widths, use the overload that takes a TableProperties instance, and set the Layout property of the TableProperties to 'Fixed'.
Exceptions
ExceptionDescription
WordDocumentWriterExceptionThrown if no document is currently open.
Remarks

This method starts a <tbl> element. Callers are responsible for closing this element. The <tbl> element can be closed by calling the EndTable method.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, 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