Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Get-OfficeWordTableCell

Aliases: WordTableCells
Module PSWriteOffice
Aliases
WordTableCells
Inputs
OfficeIMO.Word.WordTable
Outputs
OfficeIMO.Word.WordTableCell

Gets cells from an OfficeIMO Word table.

Syntax

Get-OfficeWordTableCell [-Column <Int32>] [-Row <Int32>] [-Table] <WordTable> [<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Authored help example

Read a specific status cell from the first table.

$table = Get-OfficeWordTable -Path .\Report.docx | Select-Object -First 1
$cell = $table | Get-OfficeWordTableCell -Row 1 -Column 2
$cell.Paragraphs |
    Select-Object -Property Text

Gets a zero-based table cell from an OfficeIMO table object and inspects its paragraphs.

Parameters

-Column Int32 optional
Optional zero-based column index.
-Row Int32 optional
Optional zero-based row index.
-Table WordTable requiredposition: 0pipeline: True (ByValue)
Table to inspect.

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.