Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Set-OfficeWordTableCell

Module
PSWriteOffice
Inputs
OfficeIMO.Word.WordTableCell
Outputs
OfficeIMO.Word.WordTableCell

Updates native Word cell text, physical geometry and layout flags.

Syntax

Set-OfficeWordTableCell
[-BackgroundColor <OfficeColor>]
[-Cell] <WordTableCell>
[-CopyParagraphs]
[-FitText]
[-MarginBottom <OfficeLength>]
[-MarginLeft <OfficeLength>]
[-MarginRight <OfficeLength>]
[-MarginTop <OfficeLength>]
[-MergeDown <Int32>]
[-MergeRight <Int32>]
[-NoWrap]
[-PassThru]
[-ShadingPattern <WordShadingPattern>]
[-SplitHorizontal <Int32>]
[-SplitVertical <Int32>]
[-Text <String>]
[-TextDirection <WordTextDirection>]
[-Width <OfficeLength>]
[<CommonParameters>]
#
Parameter set: Default
Set-OfficeWordTableCell
[-BackgroundColor <OfficeColor>]
[-Cell] <WordTableCell>
[-CopyParagraphs]
[-FitText]
[-MarginBottom <OfficeLength>]
[-MarginLeft <OfficeLength>]
[-MarginRight <OfficeLength>]
[-MarginTop <OfficeLength>]
[-MergeDown <Int32>]
[-MergeRight <Int32>]
[-NoWrap]
[-PassThru]
[-ShadingPattern <WordShadingPattern>]
[-SplitHorizontal <Int32>]
[-SplitVertical <Int32>]
[-Text <String>]
[-TextDirection <WordTextDirection>]
-WidthPercent <Double>
[<CommonParameters>]
#
Parameter set: WidthPercent

Examples

Example 1

Set-OfficeWordTableCell -Cell 'Value'

Example 2

Set-OfficeWordTableCell -Cell 'Value' -WidthPercent 1

Parameters

-BackgroundColor OfficeColor optional
BackgroundColor for the native cell.
-Cell WordTableCell requiredposition: 0pipeline: True (ByValue)
Cell for the native cell.
-CopyParagraphs SwitchParameter optional
CopyParagraphs for the native cell.
-FitText SwitchParameter optional
FitText for the native cell.
-MarginBottom OfficeLength optional
MarginBottom for the native cell.
-MarginLeft OfficeLength optional
MarginLeft for the native cell.
-MarginRight OfficeLength optional
MarginRight for the native cell.
-MarginTop OfficeLength optional
MarginTop for the native cell.
-MergeDown Int32 optional
MergeDown for the native cell.
-MergeRight Int32 optional
MergeRight for the native cell.
-NoWrap SwitchParameter optional
NoWrap for the native cell.
-PassThru SwitchParameter optional
PassThru for the native cell.
-ShadingPattern WordShadingPattern optional
ShadingPattern for the native cell.
Possible values: Nil, Clear, Solid, HorizontalStripe, VerticalStripe, ReverseDiagonalStripe, DiagonalStripe, HorizontalCross, DiagonalCross, ThinHorizontalStripe, ThinVerticalStripe, ThinReverseDiagonalStripe, ThinDiagonalStripe, ThinHorizontalCross, ThinDiagonalCross, Percent5, Percent10, Percent12, Percent15, Percent20, Percent25, Percent30, Percent35, Percent37, Percent40, Percent45, Percent50, Percent55, Percent60, Percent62, Percent65, Percent70, Percent75, Percent80, Percent85, Percent87, Percent90, Percent95
-SplitHorizontal Int32 optional
SplitHorizontal for the native cell.
-SplitVertical Int32 optional
SplitVertical for the native cell.
-Text String optional
Text for the native cell.
-TextDirection WordTextDirection optional
TextDirection for the native cell.
Possible values: LeftToRightTopToBottom, LeftToRightTopToBottom2010, TopToBottomRightToLeft, TopToBottomRightToLeft2010, BottomToTopLeftToRight, BottomToTopLeftToRight2010, LeftToRightTopToBottomRotated, LeftToRightTopToBottomRotated2010, TopToBottomRightToLeftRotated, TopToBottomRightToLeftRotated2010, TopToBottomLeftToRightRotated, TopToBottomLeftToRightRotated2010
-Width OfficeLength optionalsets: Default
Width for the native cell.
-WidthPercent Double requiredsets: WidthPercent
WidthPercent for the native 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.