# Add-OfficeWordText

Adds inline text to the current paragraph. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice API Reference.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **727**

Forks **84**

Open issues **7**

Total downloads **5,275,783**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-24

Cmdlet 

Aliases: WordBold, WordItalic, WordText

**Module**

`PSWriteOffice`

**Aliases**

`WordBold` `WordItalic` `WordText`

**Inputs**

`OfficeIMO.Word.WordParagraph`

**Outputs**

`OfficeIMO.Word.WordParagraph`

**Source**

[AddOfficeWordTextCommand.cs:25](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Word/AddOfficeWordTextCommand.cs#L25) 

Adds inline text to the current paragraph.

## Syntax

```
Add-OfficeWordText
[-Bold]
[-Color <String>]
[-FontName <String>]
[-FontSize <Double>]
[-Italic]
[-Paragraph <WordParagraph>]
[-PassThru]
[-Strike]
[-Text] <String[]>
[-Underline <WordUnderlineStyle>]
[<CommonParameters>]
```

[#](#method-add-officewordtext-switchparameter-string-string-double-switchparameter-wordparagraph-switchparameter-switchparameter-string-wordunderlinestyle)

Parameter set: `Text`

```
Add-OfficeWordText
[-Bold]
[-Color <String>]
[-FontName <String>]
[-FontSize <Double>]
[-Italic]
[-Paragraph <WordParagraph>]
[-PassThru]
-Run <Object[]>
[-Strike]
[-Underline <WordUnderlineStyle>]
[<CommonParameters>]
```

[#](#method-add-officewordtext-switchparameter-string-string-double-switchparameter-wordparagraph-switchparameter-object-switchparameter-wordunderlinestyle)

Parameter set: `Run`

## Description

Supports bold/italic/underline and color tweaks for quick DSL composition.

## Examples

### Append bold text.

```powershell
Add-OfficeWordParagraph { Add-OfficeWordText -Text 'Important: ' -Bold }
```

Writes “Important:” with bold formatting.

### Append several styled segments to a paragraph.

```powershell
$paragraph | Add-OfficeWordText -Run @{ Text = 'Status: ', 'Ready'; Bold = $true, $false; Color = $null, 'SeaGreen' }
```

Appends one line with independent formatting for its label and value.

## Parameters

**-Bold SwitchParameter optional**

Apply bold formatting.

**-Color String optional**

Run color. Named colors and hexadecimal values are accepted.

**-FontName String optionalaliases: Font, FontFamily, Typeface**

Font name or family.

**-FontSize Double optional**

Font size in points.

**-Italic SwitchParameter optional**

Apply italic formatting.

**-Paragraph WordParagraph optionalpipeline: True (ByValue)**

Paragraph that will receive the text outside a DSL context.

**-PassThru SwitchParameter optional**

Emit the target paragraph for further composition.

**-Strike SwitchParameter optional**

Render text with strikethrough.

**-Text String[] requiredposition: 0sets: Text**

Text segments to append.

**-Underline WordUnderlineStyle optional**

Optional underline style.

Possible values: `Single`, `Words`, `Double`, `Thick`, `Dotted`, `DottedHeavy`, `Dash`, `DashedHeavy`, `DashLong`, `DashLongHeavy`, `DotDash`, `DashDotHeavy`, `DotDotDash`, `DashDotDotHeavy`, `Wave`, `WavyHeavy`, `WavyDouble`

**-Run Object[] requiredaliases: Runssets: Run**

Rich text runs. Each run can be created with TextRun/WordTextRun or provided as a hashtable/object.

## 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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:5A27C18449D3EE55457214C4B5D8D1399F24BE0ECE02294419A45ADCF4AC18C3 -->
