# New-OfficeWordTableCell

Creates a plain or recorded rich Word cell for explicit table rows.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`None`

**Outputs**

`PSWriteOffice.Services.Table.OfficeTableCellSpec`

**Source**

[NewOfficeWordTableCellCommand.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Word/NewOfficeWordTableCellCommand.cs#L13) 

Creates a plain or recorded rich Word cell for explicit table rows.

## Syntax

```
New-OfficeWordTableCell
[-Alignment <OfficeAlignment>]
[-BackgroundColor <OfficeColor>]
[-Bold]
[-Color <OfficeColor>]
[-ColumnSpan <Int32>]
[-Font <String>]
[-Italic]
[-RowSpan <Int32>]
[-Size <OfficeLength>]
[-Strikethrough]
[[-Text] <String>]
[-Underline <WordUnderlineStyle>]
[-VerticalAlignment <Top|Center|Bottom>]
[<CommonParameters>]
```

[#](#member-3647c28563a49d81ab4ff562)

Parameter set: `Text`

```
New-OfficeWordTableCell
[-Alignment <OfficeAlignment>]
[-BackgroundColor <OfficeColor>]
[-ColumnSpan <Int32>]
[-Content] <ScriptBlock>
[-RowSpan <Int32>]
[-VerticalAlignment <Top|Center|Bottom>]
[<CommonParameters>]
```

[#](#method-new-officewordtablecell-officealignment-officecolor-int32-scriptblock-int32-wordtableverticalalignment)

Parameter set: `Content`

## Examples

### Example 1

```powershell
New-OfficeWordTableCell -Alignment 'Value'
```

### Example 2

```powershell
New-OfficeWordTableCell -Content { }
```

## Parameters

**-Alignment OfficeAlignment optional**

Alignment for the cell.

Possible values: `Left`, `Center`, `Right`, `Justify`, `Start`, `End`

**-BackgroundColor OfficeColor optional**

BackgroundColor for the cell.

**-Bold SwitchParameter optionalsets: Text**

Bold for the cell.

**-Color OfficeColor optionalsets: Text**

Color for the cell.

**-ColumnSpan Int32 optional**

ColumnSpan for the cell.

**-Font String optionalsets: Text**

Font for the cell.

**-Italic SwitchParameter optionalsets: Text**

Italic for the cell.

**-RowSpan Int32 optional**

RowSpan for the cell.

**-Size OfficeLength optionalsets: Text**

Size for the cell.

**-Strikethrough SwitchParameter optionalsets: Text**

Strikethrough for the cell.

**-Text String optionalposition: 0sets: Text**

Text for the cell.

**-Underline WordUnderlineStyle optionalsets: Text**

Underline for the cell.

Possible values: `Single`, `Words`, `Double`, `Thick`, `Dotted`, `DottedHeavy`, `Dash`, `DashedHeavy`, `DashLong`, `DashLongHeavy`, `DotDash`, `DashDotHeavy`, `DotDotDash`, `DashDotDotHeavy`, `Wave`, `WavyHeavy`, `WavyDouble`

**-VerticalAlignment WordTableVerticalAlignment optional**

VerticalAlignment for the cell.

Possible values: `Top`, `Center`, `Bottom`

**-Content ScriptBlock requiredposition: 0sets: Content**

Content for the cell.

## 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).

## Outputs

PSWriteOffice.Services.Table.OfficeTableCellSpec: Describes a logical table cell that can be rendered by multiple Office table surfaces.

<!-- PowerForge markdown artifact sha256:1C4808B071C40C46F6E4C84E8987A3F2CDB1A3D3011DE73B0245377D8E12EA1A -->
