Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Get-OfficeWordBookmark

Module
PSWriteOffice
Inputs
OfficeIMO.Word.WordDocument System.String[]
Outputs
OfficeIMO.Word.WordBookmark

Gets bookmarks, optionally by name (wildcards).

Syntax

Get-OfficeWordBookmark
[-Document <WordDocument>]
[-Name <String[]>]
[<CommonParameters>]
#
Parameter set: Document
Get-OfficeWordBookmark
[-Name <String[]>]
[-Path] <String[]>
[<CommonParameters>]
#
Parameter set: Path
Get-OfficeWordBookmark
-LiteralPath <String[]>
[-Name <String[]>]
[<CommonParameters>]
#
Parameter set: LiteralPath

Examples

Example 1

Get-OfficeWordBookmark -Name @('Name')

Example 2

Get-OfficeWordBookmark -LiteralPath @('C:\Path')

Example 3

Get-OfficeWordBookmark -Path @('C:\Path')

Parameters

-Document WordDocument optionalpipeline: True (ByValue)sets: Document
Document for this inspection.
-Name String[] optional
Name for this inspection.
-Path String[] requiredposition: 0pipeline: True (ByValue)sets: Path
Path for this inspection.
-LiteralPath String[] requiredpipeline: True (ByPropertyName)aliases: FullName, PSPathsets: LiteralPath
LiteralPath for this inspection.

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.