Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PowerPointTableBuilder

OfficeIMO.PowerPoint

Namespace
OfficeIMO.PowerPoint
Assembly
OfficeIMO.PowerPoint
Source revision
22fb5b2be3d2 with working tree changes
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.

Accepted by parameters 1

Methods

public PowerPointTableBuilder Columns(int count) #

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

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

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

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

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

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.