[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.Table

Class Table

Namespace
GrapeCity.Documents.Word
Assembly
GcDocs.Word.dll

Represents a table element in a body content.

public class Table : FormattedContentObject, IBrowsable<Table>
Inheritance
object
Table
Implements
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Properties

Format

Provides access to the table formatting properties.

public TableFormat Format { get; }

Property Value

TableFormat

this[int, int]

Gets the table cell at a specified row and column indices.

public Cell this[int rowIndex, int cellIndex] { get; }

Parameters

rowIndex int

The row index in the table.

cellIndex int

The cell (column) index in the table row.

Property Value

Cell

The table Cell.

NestedTabels

Gets the collection of tables nested within this table.

public Table[] NestedTabels { get; }

Property Value

Table[]

Next

Gets the next table.

public Table Next { get; }

Property Value

Table

ParentTable

Gets the parent table of this table.

public Table ParentTable { get; }

Property Value

Table

Previous

Gets the previous table.

public Table Previous { get; }

Property Value

Table

Rows

Gets the collection of rows in this table.

public RowCollection Rows { get; }

Property Value

RowCollection

Style

Gets or sets a table style that shall be used to format the contents of this table.

public Style Style { get; set; }

Property Value

Style

Methods

AddContentControl(ContentControlType, bool)

Adds a ContentControl to the end of the table.

public ContentControl AddContentControl(ContentControlType type, bool fillContent = true)

Parameters

type ContentControlType

The new content control type.

fillContent bool

Whether to fill the new control content with default data.

Returns

ContentControl

The added ContentControl.

Split(Row, InsertLocation)

Splits the table at a specified location.

public Table Split(Row row, InsertLocation location)

Parameters

row Row

The row where to split the table. This may be null, see location for details.

location InsertLocation

The target location (relative to row) where to split the table.

If row is not null, valid location values are Before and After.

If row is null, valid location values are Start and End.

Returns

Table

The second part of the split table content.