Click or drag to resize
Table Class
Represents a set of paragraphs (and other Block-level content) arranged in rows and columns.
Inheritance Hierarchy

Namespace:  GemBox.Document.Tables
Assembly:  GemBox.Document (in GemBox.Document.dll) Version: 25.3.30.1255
Syntax
public sealed class Table : Block, 
	IContentElement

The Table type exposes the following members.

Constructors
  NameDescription
Public methodTable(DocumentModel)
Initializes a new instance of the Table class.
Public methodTable(DocumentModel, TableRow)
Initializes a new instance of the Table class with specified rows.
Public methodTable(DocumentModel, IEnumerableTableRow)
Initializes a new instance of the Table class with specified rows.
Public methodTable(DocumentModel, Int32, Int32)
Initializes a new instance of the Table class with a specified row and column count.
Public methodTable(DocumentModel, Int32, Int32, CreateTableCell)
Initializes a new instance of the Table class with a specified number of row and column count and a method used to create TableCells.
Top
Properties
  NameDescription
Public propertyColumns
Gets the table columns.
Public propertyContent
Gets the content of the current Element.
(Inherited from Element.)
Public propertyDocument
Gets the owner document.
(Overrides ElementDocument.)
Public propertyElementType
Gets the ElementType of this Element instance.
(Overrides ElementElementType.)
Public propertyMetadata
Gets the metadata (non-visual properties) of this Table instance.
Public propertyParent
Gets the parent of this Element instance.
(Inherited from Element.)
Public propertyParentCollection
Gets the BlockCollection that contains this Block instance.
(Inherited from Block.)
Public propertyRows
Gets the table rows.
Public propertyTableFormat
Gets or sets the table format.
Top
Methods
Explicit Interface Implementations
Remarks

Table is a Block derived content element consisting of TableRows.

Table can be formatted using the Table.TableFormat property.

Default width for table columns can be specified with Table.Columns property.

For more information, see table samples.

See Also