Cmdlet
New-OfficeWordTableCell
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:
TextNew-OfficeWordTableCell
[-Alignment <OfficeAlignment>]
[-BackgroundColor <OfficeColor>]
[-ColumnSpan <Int32>]
[-Content] <ScriptBlock>
[-RowSpan <Int32>]
[-VerticalAlignment <Top| Center| Bottom>]
[<CommonParameters>]#Parameter set:
ContentExamples
Example 1
New-OfficeWordTableCell -Alignment 'Value'Example 2
New-OfficeWordTableCell -Content { }Parameters
- -Alignment OfficeAlignment
- Alignment for the cell.
- Possible values:
Left,Center,Right,Justify,Start,End - -BackgroundColor OfficeColor
- BackgroundColor for the cell.
- -Bold SwitchParameter
- Bold for the cell.
- -Color OfficeColor
- Color for the cell.
- -ColumnSpan Int32
- ColumnSpan for the cell.
- -Font String
- Font for the cell.
- -Italic SwitchParameter
- Italic for the cell.
- -RowSpan Int32
- RowSpan for the cell.
- -Size OfficeLength
- Size for the cell.
- -Strikethrough SwitchParameter
- Strikethrough for the cell.
- -Text String
- Text for the cell.
- -Underline WordUnderlineStyle
- 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
- VerticalAlignment for the cell.
- Possible values:
Top,Center,Bottom - -Content ScriptBlock
- 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.