API Reference

Cmdlet

Add-OfficeWordTableCell

Aliases: WordTableCell
Namespace PSWriteOffice
Aliases
WordTableCell
Inputs
OfficeIMO.Word.WordTable
Outputs
OfficeIMO.Word.WordTableCell

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

Authored help example

Add nested content to a table cell.

PS>


WordTable -InputObject $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> [-Run <Object[]>] [-Text <String>] [<CommonParameters>]
#
Parameter set: Context

Parameters

Column Int32 requiredposition: namedpipeline: False
Zero-based column index.
Content ScriptBlock optionalposition: 0pipeline: False
DSL content executed inside the selected cell.
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the selected WordTableCell.
Row Int32 requiredposition: namedpipeline: False
Zero-based row index.
Run Object[] optionalposition: namedpipeline: Falsealiases: Runs
Rich text runs to append to the selected cell before nested content runs.
Text String optionalposition: namedpipeline: False
Text to append to the selected cell before nested content runs.

Outputs

OfficeIMO.Word.WordTableCell

Add-OfficeWordTableCell -Column <Int32> [-Content <ScriptBlock>] [-PassThru] -Row <Int32> [-Run <Object[]>] -Table <WordTable> [-Text <String>] [<CommonParameters>]
#
Parameter set: Table

Parameters

Column Int32 requiredposition: namedpipeline: False
Zero-based column index.
Content ScriptBlock optionalposition: 0pipeline: False
DSL content executed inside the selected cell.
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the selected WordTableCell.
Row Int32 requiredposition: namedpipeline: False
Zero-based row index.
Run Object[] optionalposition: namedpipeline: Falsealiases: Runs
Rich text runs to append to the selected cell before nested content runs.
Table WordTable requiredposition: namedpipeline: True (ByValue)
Optional table to target outside the active DSL table scope.
Text String optionalposition: namedpipeline: False
Text to append to the selected cell before nested content runs.

Outputs

OfficeIMO.Word.WordTableCell