WordTableBuilder
OfficeIMO.Word
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
- WordTableBuilder
Usage
Explore 10 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 WordTableBuilder.Columns
- Method WordTableBuilder.Configure
- Method WordTableBuilder.Header
- Method WordTableBuilder.Row
- Method WordTableBuilder.Style
Accepted by parameters 5
- Method WordDocumentScope.Table
- Method WordFooterScope.Table
- Method WordHeaderScope.Table
- Method WordSectionScope.Table
- Method WordTableCellScope.Table
Methods
public WordTableBuilder 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
- Minimum number of columns, at least one.
public WordTableBuilder Configure(Action<WordTableScope> configure) #Configures the created table after its cells are filled: width, borders, alignment, title.
Parameters
- configure System.Action<OfficeIMO.Word.WordTableScope>
- Edits the table through its scope.
public WordTableBuilder Header(params string[] cells) #Sets the header row, which repeats at the top of each page and gets the style's first-row formatting.
Parameters
- cells string[]
- Header texts, one per column.
public WordTableBuilder Header(Action<WordTableRowBuilder> row) #Sets the header row, with a scope for each header cell.
Parameters
- row System.Action<OfficeIMO.Word.WordTableRowBuilder>
- Adds the header cells.
public WordTableBuilder Row(params string[] cells) #Adds a row of plain texts.
Parameters
- cells string[]
- Cell texts, one per column.
public WordTableBuilder Row(Action<WordTableRowBuilder> row) #Adds a row whose cells are configured through their scopes.
Parameters
- row System.Action<OfficeIMO.Word.WordTableRowBuilder>
- Adds the row's cells.
public WordTableBuilder Style(WordTableStyle style) #Sets the table style.
Parameters
- style OfficeIMO.Word.WordTableStyle
- Built-in table style.