Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

New-OfficePdfTableCell

Aliases: PdfTableCell
Module
PSWriteOffice
Aliases
PdfTableCell
Inputs
None
Outputs
PSWriteOffice.Services.Table.OfficeTableCellSpec

Creates a native PDF cell containing text, images or form fields.

Syntax

New-OfficePdfTableCell
[-Alignment <OfficeAlignment>]
[-BackgroundColor <OfficeColor>]
[-Bold]
[-Bookmark <String>]
[-Color <OfficeColor>]
[-ColumnSpan <Int32>]
[-Italic]
[-Link <String>]
[-LinkBookmark <String>]
[-LinkContents <String>]
[-NoWrap]
[-RowSpan <Int32>]
[-Size <OfficeLength>]
[-Strikethrough]
[[-Text] <String>]
[-Underline <OfficeTextDecorationStyle>]
[-VerticalAlignment <Top|Center|Bottom>]
[<CommonParameters>]
#
Parameter set: Text
New-OfficePdfTableCell
[-Alignment <OfficeAlignment>]
[-BackgroundColor <OfficeColor>]
[-Bookmark <String>]
[-Color <OfficeColor>]
[-ColumnSpan <Int32>]
[-Content] <ScriptBlock>
[-NoWrap]
[-RowSpan <Int32>]
[-Size <OfficeLength>]
[-VerticalAlignment <Top|Center|Bottom>]
[<CommonParameters>]
#
Parameter set: Content

Examples

Example 1

New-OfficePdfTableCell -Alignment 'Value'

Example 2

New-OfficePdfTableCell -Content { }

Parameters

-Alignment OfficeAlignment optional
Alignment for this content.
Possible values: Left, Center, Right, Justify, Start, End
-BackgroundColor OfficeColor optional
BackgroundColor for this content.
-Bold SwitchParameter optionalsets: Text
Bold for this content.
-Bookmark String optional
Bookmark for this content.
-Color OfficeColor optional
Color for this content.
-ColumnSpan Int32 optional
ColumnSpan for this content.
-Italic SwitchParameter optionalsets: Text
Italic for this content.
Link for this content.
-LinkBookmark String optionalsets: Text
LinkBookmark for this content.
-LinkContents String optionalsets: Text
LinkContents for this content.
-NoWrap SwitchParameter optional
NoWrap for this content.
-RowSpan Int32 optional
RowSpan for this content.
-Size OfficeLength optional
Size for this content.
-Strikethrough SwitchParameter optionalsets: Text
Strikethrough for this content.
-Text String optionalposition: 0sets: Text
Text for this content.
-Underline OfficeTextDecorationStyle optionalsets: Text
Underline for this content.
Possible values: Single, Double, Dotted, Dashed, Wavy, Words
-VerticalAlignment OfficeTextVerticalAlignment optional
VerticalAlignment for this content.
Possible values: Top, Center, Bottom
-Content ScriptBlock requiredposition: 0sets: Content
Content for this content.

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.