API Reference
Cmdlet
Get-OfficeWordShape
Gets shapes from a Word document, section, or paragraph.
Remarks
Gets shapes from a Word document, section, or paragraph.
Examples
List shapes and metadata.
PS>
$shapes = Get-OfficeWordShape -Path .\Report.docx
$shapes |
Select-Object -Property Title, Description, Width, Height, FillColorHex |
Format-Table -AutoSize
Reads OfficeIMO Word shapes from the document so styling and alternate text can be audited.
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
Get-OfficeWordShape -InputPath <String> [<CommonParameters>]#Parameter set:
PathParameters
- InputPath String
- Path to the document.
Outputs
OfficeIMO.Word.WordShape
Get-OfficeWordShape -Document <WordDocument> [<CommonParameters>]#Parameter set:
DocumentParameters
- Document WordDocument
- Document to inspect.
Outputs
OfficeIMO.Word.WordShape
Get-OfficeWordShape -Section <WordSection> [<CommonParameters>]#Parameter set:
SectionParameters
- Section WordSection
- Section to inspect.
Outputs
OfficeIMO.Word.WordShape
Get-OfficeWordShape -Paragraph <WordParagraph> [<CommonParameters>]#Parameter set:
ParagraphParameters
- Paragraph WordParagraph
- Paragraph to inspect.
Outputs
OfficeIMO.Word.WordShape