Cmdlet
Get-OfficeWordShape
Gets shapes from a Word document, section, or paragraph.
Syntax
Get-OfficeWordShape [-Path] <String> [<CommonParameters>]#Parameter set:
PathGet-OfficeWordShape -Document <WordDocument> [<CommonParameters>]#Parameter set:
DocumentGet-OfficeWordShape -Section <WordSection> [<CommonParameters>]#Parameter set:
SectionGet-OfficeWordShape -Paragraph <WordParagraph> [<CommonParameters>]#Parameter set:
ParagraphExamples
List shapes and metadata.
$shapes = Get-OfficeWordShape -Path .\Report.docx
$shapes |
Select-Object -Property Title, Description, Width, Height, FillColorHex |
Format-Table -AutoSizeReads OfficeIMO Word shapes from the document so styling and alternate text can be audited.
Parameters
- -Path String
- Path to the document.
- -Document WordDocument
- Document to inspect.
- -Section WordSection
- Section to inspect.
- -Paragraph WordParagraph
- Paragraph 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.