# PowerPointTableBuilder

Collects the header and rows of a table, so the Table(t => ...) keyword can create the table at its final size and then configure each cell through its scope.

Class 

`OfficeIMO.PowerPoint`

**Namespace**

`OfficeIMO.PowerPoint`

**Assembly**

`OfficeIMO.PowerPoint`

**Source revision**

`105ae88c45f6` with working tree changes

**Source**

[PowerPointScopes.cs:112](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.PowerPoint/Scopes/PowerPointScopes.cs#L112)

**Modifiers**

sealed

Collects the header and rows of a table, so the Table(t => ...) keyword can create the table at its final size and then configure each cell through its scope.

## Inheritance

- object
- PowerPointTableBuilder

## 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 4

- Method [PowerPointTableBuilder.Columns](/api/powerpoint/officeimo-powerpoint-powerpointtablebuilder/#method-columns-int32)
- Method [PowerPointTableBuilder.Configure](/api/powerpoint/officeimo-powerpoint-powerpointtablebuilder/#method-configure-action-officeimo-powerpoint-powerpointtablescope)
- Method [PowerPointTableBuilder.Header](/api/powerpoint/officeimo-powerpoint-powerpointtablebuilder/#method-header-string)
- Method [PowerPointTableBuilder.Row](/api/powerpoint/officeimo-powerpoint-powerpointtablebuilder/#method-row-string)

### Accepted by parameters 1

- Method [PowerPointSlideScope.Table](/api/powerpoint/officeimo-powerpoint-powerpointslidescope/#method-table-action-officeimo-powerpoint-powerpointtablebuilder) parameter `compose`

Filter members 

Show inherited

## Methods

`public PowerPointTableBuilder Columns(int count)` [#](#method-columns-int32)

[PowerPointScopes.cs:112](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.PowerPoint/Scopes/PowerPointScopes.cs#L112)

Sets the minimum number of columns. The table is as wide as this or its widest row, whichever is more.

Parameters

**count int required**

Minimum number of columns, at least one.

Returns

`PowerPointTableBuilder` The same builder.

`public PowerPointTableBuilder Configure(Action<PowerPointTableScope> configure)` [#](#method-configure-action-officeimo-powerpoint-powerpointtablescope)

[PowerPointScopes.cs:153](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.PowerPoint/Scopes/PowerPointScopes.cs#L153)

Configures the created table after its cells are filled: style, position, column widths.

Parameters

**configure System.Action<OfficeIMO.PowerPoint.PowerPointTableScope> required**

Edits the table through its scope.

Returns

`PowerPointTableBuilder` The same builder.

Header 2 overloads

`public PowerPointTableBuilder Header(params string[] cells)` [#](#method-header-string)

[PowerPointScopes.cs:121](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.PowerPoint/Scopes/PowerPointScopes.cs#L121)

Sets the header row, which gets the table style's header formatting.

Parameters

**cells string[] required**

Header texts, one per column.

Returns

`PowerPointTableBuilder` The same builder.

`public PowerPointTableBuilder Header(Action<PowerPointTableRowBuilder> row)` [#](#method-header-action-officeimo-powerpoint-powerpointtablerowbuilder)

[PowerPointScopes.cs:129](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.PowerPoint/Scopes/PowerPointScopes.cs#L129)

Sets the header row, with a scope for each header cell.

Parameters

**row System.Action<OfficeIMO.PowerPoint.PowerPointTableRowBuilder> required**

Adds the header cells.

Returns

`PowerPointTableBuilder` The same builder.

Row 2 overloads

`public PowerPointTableBuilder Row(params string[] cells)` [#](#method-row-string)

[PowerPointScopes.cs:137](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.PowerPoint/Scopes/PowerPointScopes.cs#L137)

Adds a row of plain texts.

Parameters

**cells string[] required**

Cell texts, one per column.

Returns

`PowerPointTableBuilder` The same builder.

`public PowerPointTableBuilder Row(Action<PowerPointTableRowBuilder> row)` [#](#method-row-action-officeimo-powerpoint-powerpointtablerowbuilder)

[PowerPointScopes.cs:145](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.PowerPoint/Scopes/PowerPointScopes.cs#L145)

Adds a row whose cells are configured through their scopes.

Parameters

**row System.Action<OfficeIMO.PowerPoint.PowerPointTableRowBuilder> required**

Adds the row's cells.

Returns

`PowerPointTableBuilder` The same builder.

## 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?`

<!-- PowerForge markdown artifact sha256:8CA5A54117D0093120D6AB5D46C062C141153E79A35A5A569E1BED85B8497581 -->
