# TableRow

Typed table row containing header or body cells.

Class 

`OfficeIMO.Markdown`

**Namespace**

`OfficeIMO.Markdown`

**Assembly**

`OfficeIMO.Markdown`

**Source revision**

`e96266e685be` with working tree changes

**Source**

[TableRow.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Markdown/Blocks/TableRow.cs#L10)

**Base**

`MarkdownObject`

**Modifiers**

sealed

Typed table row containing header or body cells.

## Inheritance

- [MarkdownObject](/api/markdown/officeimo-markdown-markdownobject/)
- TableRow

## Usage

Explore 5 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 5

- Method [MarkdownDocument.DescendantTableRows](/api/markdown/officeimo-markdown-markdowndocument/#method-descendanttablerows)
- Property [MarkdownNativeTableRow.SourceRow](/api/markdown/officeimo-markdown-markdownnativetablerow/#property-sourcerow)
- Method [TableBlock.EnumerateRows](/api/markdown/officeimo-markdown-tableblock/#method-enumeraterows)
- Property [TableBlock.BodyRows](/api/markdown/officeimo-markdown-tableblock/#property-bodyrows)
- Property [TableBlock.HeaderRow](/api/markdown/officeimo-markdown-tableblock/#property-headerrow)

Filter members 

Show inherited

## Constructors

`public TableRow(IEnumerable<TableCell>? cells, bool isHeader, int rowIndex)` [#](#constructor-ctor-collections-generic-ienumerable-officeimo-markdown-tablecell-boolean-int32)

[TableRow.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Markdown/Blocks/TableRow.cs#L10)

Creates a typed table row.

Parameters

**cells System.Collections.Generic.IEnumerable<OfficeIMO.Markdown.TableCell>? required**

**isHeader bool required**

**rowIndex int required**

## Methods

`public TableCell? GetCell(int columnIndex)` [#](#method-getcell-int32)

[TableRow.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Markdown/Blocks/TableRow.cs#L29)

Gets a cell by zero-based column index.

Parameters

**columnIndex int required**

Returns

`TableCell?`

## Inherited Methods

`public void Accept(MarkdownVisitor visitor)` [#](#method-accept-markdownvisitor)

[MarkdownObject.cs:155](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Markdown/Core/MarkdownObject.cs#L155)

Inherited from [MarkdownObject](/api/markdown/officeimo-markdown-markdownobject/)

Parameters

**visitor MarkdownVisitor required**

`public IEnumerable<MarkdownObject> Ancestors()` [#](#method-ancestors)

Inherited from [MarkdownObject](/api/markdown/officeimo-markdown-markdownobject/)

Returns

`IEnumerable<MarkdownObject>`

`public IEnumerable<MarkdownObject> AncestorsAndSelf()` [#](#method-ancestorsandself)

Inherited from [MarkdownObject](/api/markdown/officeimo-markdown-markdownobject/)

Returns

`IEnumerable<MarkdownObject>`

`public IEnumerable<TObject> DescendantObjectsOfType<TObject>()` [#](#method-descendantobjectsoftype)

Inherited from [MarkdownObject](/api/markdown/officeimo-markdown-markdownobject/)

Type Parameters

**TObject**

Returns

`IEnumerable<TObject>`

`public IEnumerable<MarkdownObject> Descendants()` [#](#method-descendants)

Inherited from [MarkdownObject](/api/markdown/officeimo-markdown-markdownobject/)

Returns

`IEnumerable<MarkdownObject>`

`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 IReadOnlyList<TableCell> Cells { get; }` [#](#property-cells)

[TableRow.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Markdown/Blocks/TableRow.cs#L19)

Cells in this row, preserving document column order.

`public bool IsHeader { get; }` [#](#property-isheader)

[TableRow.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Markdown/Blocks/TableRow.cs#L22)

Whether this is the table header row.

`public int RowIndex { get; }` [#](#property-rowindex)

[TableRow.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Markdown/Blocks/TableRow.cs#L25)

Zero-based body row index, or -1 for the header row.

## Inherited Properties

`public MarkdownObject? Parent { get; }` [#](#property-parent)

[MarkdownObject.cs:93](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Markdown/Core/MarkdownObject.cs#L93)

Inherited from [MarkdownObject](/api/markdown/officeimo-markdown-markdownobject/)

`public MarkdownDocument? Document { get; }` [#](#property-document)

[MarkdownObject.cs:96](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Markdown/Core/MarkdownObject.cs#L96)

Inherited from [MarkdownObject](/api/markdown/officeimo-markdown-markdownobject/)

`public MarkdownObject Root { get; }` [#](#property-root)

[MarkdownObject.cs:99](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Markdown/Core/MarkdownObject.cs#L99)

Inherited from [MarkdownObject](/api/markdown/officeimo-markdown-markdownobject/)

`public int? IndexInParent { get; }` [#](#property-indexinparent)

[MarkdownObject.cs:102](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Markdown/Core/MarkdownObject.cs#L102)

Inherited from [MarkdownObject](/api/markdown/officeimo-markdown-markdownobject/)

`public MarkdownObject? PreviousSibling { get; }` [#](#property-previoussibling)

[MarkdownObject.cs:105](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Markdown/Core/MarkdownObject.cs#L105)

Inherited from [MarkdownObject](/api/markdown/officeimo-markdown-markdownobject/)

`public MarkdownObject? NextSibling { get; }` [#](#property-nextsibling)

[MarkdownObject.cs:108](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Markdown/Core/MarkdownObject.cs#L108)

Inherited from [MarkdownObject](/api/markdown/officeimo-markdown-markdownobject/)

`public MarkdownSourceSpan? SourceSpan { get; internal set; }` [#](#property-sourcespan)

[MarkdownObject.cs:113](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Markdown/Core/MarkdownObject.cs#L113)

Inherited from [MarkdownObject](/api/markdown/officeimo-markdown-markdownobject/)

`public MarkdownAttributeSet Attributes { get; }` [#](#property-attributes)

[MarkdownObject.cs:144](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Markdown/Core/MarkdownObject.cs#L144)

Inherited from [MarkdownObject](/api/markdown/officeimo-markdown-markdownobject/)

`public IReadOnlyList<MarkdownObject> ChildObjects { get; }` [#](#property-childobjects)

[MarkdownObject.cs:151](https://github.com/EvotecIT/OfficeIMO/blob/e96266e685be227bd0fd13cbe5fd00b551e2b05a/OfficeIMO.Markdown/Core/MarkdownObject.cs#L151)

Inherited from [MarkdownObject](/api/markdown/officeimo-markdown-markdownobject/)

<!-- PowerForge markdown artifact sha256:011217405A65BF5AE454AB30BA11EF4FB8498E9054F1AF9EB2C61170068DE089 -->
