# OdtTable

An XML-backed ODT table. Review signatures, members, parameters, type relationships, and available reference details in OfficeIMO.OpenDocument API Reference.

Class 

`OfficeIMO.OpenDocument`

**Namespace**

`OfficeIMO.OpenDocument`

**Assembly**

`OfficeIMO.OpenDocument`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[OdtTable.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtTable.cs#L37)

**Modifiers**

sealed

An XML-backed ODT table.

## Inheritance

- object
- OdtTable

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Create and Read ODT, ODS and ODP Files](/docs/open-document/create-read/) Guide
  
  Create OpenDocument text, spreadsheet and presentation files, read their content, edit them in place, and open password-protected files.

## Usage

Explore 3 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 3

- Property [OdtContentBlock.Table](/api/open-document/officeimo-opendocument-odtcontentblock/#property-table)
- Method [OdtDocument.AddTable](/api/open-document/officeimo-opendocument-odtdocument/#method-addtable-int32-int32-string)
- Property [OdtDocument.Tables](/api/open-document/officeimo-opendocument-odtdocument/#property-tables)

Filter members 

Show inherited

## Methods

`public OdtTableRow AddRow(int? columns = null)` [#](#method-addrow-nullable-system-int32)

[OdtTable.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtTable.cs#L45)

Adds a row with the inferred or supplied column count.

Parameters

**columns int? = null optional**

Returns

`OdtTableRow`

`public OdtTableCell Cell(int row, int column)` [#](#method-cell-int32-int32)

[OdtTable.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtTable.cs#L37)

Gets a zero-based cell.

Parameters

**row int required**

**column int required**

Returns

`OdtTableCell`

`public OdtTableCell Merge(int row, int column, int rowSpan, int columnSpan)` [#](#method-merge-int32-int32-int32-int32)

[OdtTable.cs:56](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtTable.cs#L56)

Merges a rectangular range and emits covered cells for non-anchor positions.

Parameters

**row int required**

**column int required**

**rowSpan int required**

**columnSpan int required**

Returns

`OdtTableCell`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string Name { get; set; }` [#](#property-name)

[OdtTable.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtTable.cs#L15)

Table name.

`public IReadOnlyList<OdtTableRow> Rows { get; }` [#](#property-rows)

[OdtTable.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtTable.cs#L26)

Rows in source order.

<!-- PowerForge markdown artifact sha256:A1AD22EC9E5A264644F45908788726CE8D7FC791CFF409FDB65A1898D661F2F6 -->
