# Add-OfficeOpenDocumentTextBox

Adds a positioned text box to an OpenDocument presentation slide.

Cmdlet 

Aliases: OpenDocumentTextBox

**Module**

`PSWriteOffice`

**Aliases**

`OpenDocumentTextBox`

**Inputs**

`OfficeIMO.OpenDocument.OdpSlide`

**Outputs**

`OfficeIMO.OpenDocument.OdpTextBox`

**Source**

[AddOfficeOpenDocumentTextBoxCommand.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/OpenDocument/AddOfficeOpenDocumentTextBoxCommand.cs#L18) 

Adds a positioned text box to an OpenDocument presentation slide.

## Syntax

```
Add-OfficeOpenDocumentTextBox
[-Alignment <OfficeAlignment>]
[-Bold]
[-Color <OfficeColor>]
[-Font <String>]
[-Height <OfficeLength>]
[-Italic]
[-Name <String>]
[-PassThru]
[-Size <OfficeLength>]
[-Slide <OdpSlide>]
[-Strikethrough]
[-Text] <String>
[-Underline <OdfTextDecorationStyle>]
[-Width <OfficeLength>]
[-X <OfficeLength>]
[-Y <OfficeLength>]
[<CommonParameters>]
```

[#](#member-c9526e69068a74736b7d30a3)

Parameter set: `Default`

## Guides & Samples

Authored walkthroughs and practical samples linked to this command.

- [Create and Read ODT, ODS and ODP Files](/docs/open-document/create-read/) Guide
  
  Create OpenDocument text, spreadsheet and presentation files, read their content, edit them in place, and open password-protected files.

## Examples

### Place a text box using centimetre coordinates.

```powershell
Add-OfficeOpenDocumentTextBox -Text 'Approved' -X 18cm -Y 12cm -Width 6cm -Height 2cm
```

## Parameters

**-Alignment OfficeAlignment optional**

Paragraph horizontal alignment.

Possible values: `Left`, `Center`, `Right`, `Justify`, `Start`, `End`

**-Bold SwitchParameter optional**

Apply bold text; explicit false clears it.

**-Color OfficeColor optional**

Opaque RGB text color, including CSS names and theme roles.

**-Font String optional**

Font family.

**-Height OfficeLength optional**

Height as a physical length; a number means points.

**-Italic SwitchParameter optional**

Apply italic text; explicit false clears it.

**-Name String optional**

Optional shape name.

**-PassThru SwitchParameter optional**

Emit the created text box.

**-Size OfficeLength optional**

Font size; a number means points.

**-Slide OdpSlide optionalpipeline: True (ByValue)**

Slide target. Omit inside Add-OfficeOpenDocumentSlide -Content.

**-Strikethrough SwitchParameter optional**

Apply strikethrough; explicit false clears it.

**-Text String requiredposition: 0**

Text box content.

**-Underline OdfTextDecorationStyle optional**

Native ODF underline line style.

Possible values: `Solid`, `Dotted`, `Dash`, `LongDash`, `DotDash`, `DotDotDash`, `Wave`

**-Width OfficeLength optional**

Width as a physical length; a number means points.

**-X OfficeLength optional**

Horizontal position as a physical length; a number means points.

**-Y OfficeLength optional**

Vertical position as a physical length; a number means points.

## 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).

<!-- PowerForge markdown artifact sha256:FDDD745B2D3DAF1E95259F07ED85E063D95A521F4868FC7A08B347254D041DA9 -->
