Evotec

Project

PSWriteOffice

PSWriteOffice is an open-source PowerShell and .NET project with packages, release history, and technical documentation.

Stars 144
Forks 12
Open issues 16
PowerShell Gallery downloads 150,904
Release v0.2.0
Language: C# Updated: 2026-04-06

API Reference

Cmdlet

Add-OfficeWordBookmark

Namespace PSWriteOffice
Inputs
OfficeIMO.Word.WordParagraph
Outputs
System.Object

Adds a bookmark to the current paragraph.

Remarks

Adds a bookmark to the current paragraph.

Examples

Authored help example

Add a bookmark in a paragraph.

PS>


Add-OfficeWordParagraph { Add-OfficeWordText -Text 'Intro'; Add-OfficeWordBookmark -Name 'Intro' }
        

Creates a bookmark named Intro on the paragraph.

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

Add-OfficeWordBookmark -Name <String> [-Paragraph <WordParagraph>] [-PassThru] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Name String requiredposition: 0pipeline: False
Bookmark name.
Paragraph WordParagraph optionalposition: namedpipeline: True (ByValue)
Explicit paragraph to receive the bookmark.
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the paragraph after adding the bookmark.

Outputs

System.Object