Evotec

Project

PSWriteOffice

PSWriteOffice is an open-source PowerShell and .NET project with packages, release history, and technical documentation.

Stars 144
Forks 12
Open issues 16
PowerShell Gallery downloads 150,904
Release v0.2.0
Language: C# Updated: 2026-04-06

API Reference

Cmdlet

Add-OfficeWordTableCell

Namespace PSWriteOffice
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 -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: 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.

Outputs

OfficeIMO.Word.WordTableCell

Add-OfficeWordTableCell -Column <Int32> [-Content <ScriptBlock>] [-PassThru] -Row <Int32> -Table <WordTable> [<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.
Table WordTable requiredposition: namedpipeline: True (ByValue)
Optional table to target outside the active DSL table scope.

Outputs

OfficeIMO.Word.WordTableCell