# Add-OfficeWordTableCell

Enters a specific table cell and executes nested DSL content inside it.

Cmdlet 

Aliases: WordTableCell

**Module**

`PSWriteOffice`

**Aliases**

`WordTableCell`

**Inputs**

`OfficeIMO.Word.WordTable`

**Outputs**

`OfficeIMO.Word.WordTableCell`

**Source**

[AddOfficeWordTableCellCommand.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Word/AddOfficeWordTableCellCommand.cs#L19) 

Enters a specific table cell and executes nested DSL content inside it.

## Syntax

```
Add-OfficeWordTableCell
-Column <Int32>
[[-Content] <ScriptBlock>]
[-PassThru]
-Row <Int32>
[-Text <String>]
[<CommonParameters>]
```

[#](#method-add-officewordtablecell-int32-scriptblock-switchparameter-int32-string)

Parameter set: `Context`

```
Add-OfficeWordTableCell
-Column <Int32>
[[-Content] <ScriptBlock>]
[-PassThru]
-Row <Int32>
-Table <WordTable>
[-Text <String>]
[<CommonParameters>]
```

[#](#method-add-officewordtablecell-int32-scriptblock-switchparameter-int32-wordtable-string)

Parameter set: `Table`

## Description

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.

```powershell
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.

## Parameters

**-Column Int32 required**

One-based column index.

**-Content ScriptBlock optionalposition: 0**

DSL content executed inside the selected cell.

**-PassThru SwitchParameter optional**

Emit the selected WordTableCell.

**-Row Int32 required**

One-based row index.

**-Text String optional**

Text to append to the selected cell before nested content runs.

**-Table WordTable requiredpipeline: True (ByValue)sets: Table**

Optional table to target outside the active DSL table scope.

## 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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

<!-- PowerForge markdown artifact sha256:616F959F3A0BC4B4B1DC746096EA646FA9344CF2049E74E1C111C2C5326495A6 -->
