Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Add-OfficePowerPointText

Aliases: PowerPointText
Module
PSWriteOffice
Aliases
PowerPointText
Inputs
None
Outputs
OfficeIMO.PowerPoint.PowerPointTextRun

Adds a live styled run to the enclosing paragraph or list item, or starts a slide paragraph.

Syntax

Add-OfficePowerPointText
[-Alignment <OfficeAlignment>]
[-Bold]
[-Color <OfficeColor>]
[-Font <String>]
[-Highlight <OfficeColor>]
[-Italic]
[-Link <String>]
[-PassThru]
[-Size <OfficeLength>]
[-Strikethrough]
[-Text] <String>
[-Underline <PowerPointUnderlineStyle>]
[<CommonParameters>]
#
Parameter set: Text

Examples

Link a status label.

PowerPointParagraph { PowerPointText 'Service status' -Bold -Link 'https://status.contoso.com' }

Parameters

-Alignment OfficeAlignment optional
Gets or sets alignment when starting a paragraph directly in the slide or column.
Possible values: Left, Center, Right, Justify, Start, End
-Bold SwitchParameter optional
Gets or sets bold formatting.
-Color OfficeColor optional
Gets or sets text color or a theme role.
-Font String optional
Gets or sets the font family.
-Highlight OfficeColor optional
Gets or sets the highlight color.
-Italic SwitchParameter optional
Gets or sets italic formatting.
Gets or sets the hyperlink target.
-PassThru SwitchParameter optional
Gets or sets whether to emit the native run.
-Size OfficeLength optional
Gets or sets the font size; numbers mean points.
-Strikethrough SwitchParameter optional
Gets or sets strike-through formatting.
-Text String requiredposition: 0
Gets or sets the text to append.
-Underline PowerPointUnderlineStyle optional
Gets or sets the native underline style.
Possible values: Words, Single, Double, Heavy, Dotted, HeavyDotted, Dash, DashHeavy, DashLong, DashLongHeavy, DotDash, DotDashHeavy, DotDotDash, DotDotDashHeavy, Wavy, WavyHeavy, WavyDouble

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.