API Reference
Cmdlet
Add-OfficeWordTableCell
Enters a specific table cell and executes nested DSL content inside it.
Remarks
Use this to add paragraphs, lists, images, or nested tables inside a cell selected by row and column.
Examples
Add nested content to a table cell.
PS>
WordTable -Data $Rows { WordTableCell -Row 1 -Column 0 { WordParagraph { WordText 'Details' } } }
Targets the data cell at row 1, column 0 and writes text inside it.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Add-OfficeWordTableCell -Column <Int32> [-Content <ScriptBlock>] [-PassThru] -Row <Int32> [<CommonParameters>]
#
Parameter set:
ContextParameters
- Column Int32
- Zero-based column index.
- Content ScriptBlock
- DSL content executed inside the selected cell.
- PassThru SwitchParameter
- Emit the selected WordTableCell.
- Row Int32
- Zero-based row index.
Outputs
OfficeIMO.Word.WordTableCell
Add-OfficeWordTableCell -Column <Int32> [-Content <ScriptBlock>] [-PassThru] -Row <Int32> -Table <WordTable> [<CommonParameters>]
#
Parameter set:
TableParameters
- Column Int32
- Zero-based column index.
- Content ScriptBlock
- DSL content executed inside the selected cell.
- PassThru SwitchParameter
- Emit the selected WordTableCell.
- Row Int32
- Zero-based row index.
- Table WordTable
- Optional table to target outside the active DSL table scope.
Outputs
OfficeIMO.Word.WordTableCell