Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Add-OfficeOpenDocumentTextBox

Aliases: OpenDocumentTextBox
Module
PSWriteOffice
Aliases
OpenDocumentTextBox
Inputs
OfficeIMO.OpenDocument.OdpSlide
Outputs
OfficeIMO.OpenDocument.OdpTextBox

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>]
#
Parameter set: Default

Examples

Place a text box using centimetre coordinates.

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.