Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

New-OfficeWordTableCell

Module
PSWriteOffice
Inputs
None
Outputs
PSWriteOffice.Services.Table.OfficeTableCellSpec

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>]
#
Parameter set: Text
New-OfficeWordTableCell
[-Alignment <OfficeAlignment>]
[-BackgroundColor <OfficeColor>]
[-ColumnSpan <Int32>]
[-Content] <ScriptBlock>
[-RowSpan <Int32>]
[-VerticalAlignment <Top|Center|Bottom>]
[<CommonParameters>]
#
Parameter set: Content

Examples

Example 1

New-OfficeWordTableCell -Alignment 'Value'

Example 2

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.

Outputs

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