API Reference
Cmdlet
New-OfficeWordTableCell
Creates a reusable Word table cell definition for explicit table rows.
Remarks
Creates a reusable Word table cell definition for explicit table rows.
Examples
Create a full-width Word table section row.
PS>
$row = @(New-OfficeWordTableCell -Text 'Identity systems' -ColumnSpan 3)
The returned cell can be passed to WordTable inside explicit row arrays.
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
New-OfficeWordTableCell [-Align <Nullable`1>] [-Bold] [-ColumnSpan <Int32>] [-FillColor <String>] [-FontSize <Nullable`1>] [-Italic] [-RowSpan <Int32>] [-Run <Object[]>] [-Strike] [-Text <String>] [-TextColor <String>] [-Underline] [-UnderlineStyle <Nullable`1>] [-VerticalAlign <Nullable`1>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- Align Nullable`1
- Horizontal cell alignment.
- Bold SwitchParameter
- Render the cell text in bold.
- ColumnSpan Int32
- Number of logical columns covered by the cell.
- FillColor String
- Cell fill color. Named colors and hexadecimal colors are accepted.
- FontSize Nullable`1
- Cell font size in points.
- Italic SwitchParameter
- Render the cell text in italics.
- RowSpan Int32
- Number of logical rows covered by the cell.
- Run Object[]
- Rich text runs for the cell. Each run can be created with TextRun/WordTextRun or provided as a hashtable/object.
- Strike SwitchParameter
- Render the cell text with strikethrough.
- Text String
- Cell text.
- TextColor String
- Cell text color. Named colors and hexadecimal colors are accepted.
- Underline SwitchParameter
- Render the cell text with underline.
- UnderlineStyle Nullable`1
- Optional Word underline style.
- VerticalAlign Nullable`1
- Vertical cell alignment.
Outputs
PSWriteOffice.Services.Table.OfficeTableCellSpec: Describes a logical table cell that can be rendered by multiple Office table surfaces.