API Reference
Cmdlet
New-OfficePdfTableCell
Creates a reusable PDF table cell definition for explicit table rows.
Remarks
Creates a reusable PDF table cell definition for explicit table rows.
Examples
Example 1: Create a full-width PDF table section row.
PS>
$row = @(New-OfficePdfTableCell -Text 'Identity systems' -ColumnSpan 3 -FillColor '#DBEAFE' -TextColor '#1E3A8A' -Bold)
The returned cell can be passed to PdfTable 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-OfficePdfTableCell [-Align <Nullable`1>] [-Bold] [-CheckBox <PdfTableCellCheckBox[]>] [-ColumnSpan <Int32>] [-FillColor <String>] [-FontSize <Nullable`1>] [-FormField <PdfTableCellFormField[]>] [-Image <PdfTableCellImage[]>] [-Italic] [-LinkContents <String>] [-LinkDestinationName <String>] [-LinkUri <String>] [-NamedDestinationName <String>] [-NoWrap] [-RowSpan <Int32>] [-Run <Object[]>] [-Strike] [-Text <String>] [-TextColor <String>] [-Underline] [-UnderlineStyle <String>] [-VerticalAlign <Nullable`1>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- Align Nullable`1
- Horizontal cell alignment. Possible values: Left, Center, Right
- Bold SwitchParameter
- Render the cell text in bold.
- CheckBox PdfTableCellCheckBox[]
- Typed check boxes rendered inside the cell.
- 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 PDF points.
- FormField PdfTableCellFormField[]
- Typed text or choice form fields rendered inside the cell.
- Image PdfTableCellImage[]
- Typed images rendered inside the cell.
- Italic SwitchParameter
- Render the cell text in italics.
- LinkContents String
- Accessible annotation text for the cell link.
- LinkDestinationName String
- Named PDF destination linked from the cell.
- LinkUri String
- Absolute or catalog-base-relative URI linked from the cell.
- NamedDestinationName String
- Named PDF destination defined at this cell.
- NoWrap SwitchParameter
- Keep the cell content on one visual line.
- 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/PdfTextRun 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 String
- Optional underline style name. PDF table rendering treats any supported value as underline.
- VerticalAlign Nullable`1
- Vertical cell alignment. Possible values: Top, Middle, Bottom
Outputs
PSWriteOffice.Services.Table.OfficeTableCellSpec: Describes a logical table cell that can be rendered by multiple Office table surfaces.