API Reference
Command
Get-OfficeWordBookmark
Gets bookmarks from a Word document.
Remarks
Gets bookmarks from a Word document.
Examples
List all bookmarks.
PS>Get-OfficeWordBookmark -Path .\Report.docx
Returns all bookmarks in the document.
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-OfficeWordBookmark -InputPath <String> [-Name <String[]>] [<CommonParameters>]#Parameter set:
PathParameters
- InputPath String
- Path to the .docx file.
- Name String[]
- Bookmark name filter (wildcards supported).
Outputs
OfficeIMO.Word.WordBookmark
Get-OfficeWordBookmark -Document <WordDocument> [-Name <String[]>] [<CommonParameters>]#Parameter set:
DocumentParameters
- Document WordDocument
- Word document to read.
- Name String[]
- Bookmark name filter (wildcards supported).
Outputs
OfficeIMO.Word.WordBookmark