Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Add-OfficePowerPointListItem

Aliases: PowerPointListItem
Module
PSWriteOffice
Aliases
PowerPointListItem
Inputs
None
Outputs
OfficeIMO.PowerPoint.PowerPointParagraph

Adds a native paragraph to the enclosing list, optionally using styled runs.

Syntax

Add-OfficePowerPointListItem
[-Bold]
[-Color <OfficeColor>]
[-Font <String>]
[-Highlight <OfficeColor>]
[-Italic]
[-Level <Int32>]
[-PassThru]
[-Size <OfficeLength>]
[-Strikethrough]
[-Text] <String>
[-Underline <PowerPointUnderlineStyle>]
[<CommonParameters>]
#
Parameter set: Text
Add-OfficePowerPointListItem
[-Content] <ScriptBlock>
[-Level <Int32>]
[-PassThru]
[<CommonParameters>]
#
Parameter set: Content

Examples

Write an emphasized list item.

PowerPointList { PowerPointListItem { PowerPointText 'Capacity' -Bold; PowerPointText ': review weekly' } }

Parameters

-Bold SwitchParameter optionalsets: Text
Gets or sets whether plain item text is bold.
-Color OfficeColor optionalsets: Text
Gets or sets the text color or theme role.
-Font String optionalsets: Text
Gets or sets the font family.
-Highlight OfficeColor optionalsets: Text
Gets or sets the highlight color.
-Italic SwitchParameter optionalsets: Text
Gets or sets whether plain item text is italic.
-Level Int32 optional
Gets or sets the one-based list nesting level.
-PassThru SwitchParameter optional
Gets or sets whether to emit the live native item paragraph.
-Size OfficeLength optionalsets: Text
Gets or sets the font size; numbers mean points.
-Strikethrough SwitchParameter optionalsets: Text
Gets or sets whether plain item text has a strike through it.
-Text String requiredposition: 0sets: Text
Gets or sets plain item text.
-Underline PowerPointUnderlineStyle optionalsets: Text
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
-Content ScriptBlock requiredposition: 0sets: Content
Gets or sets the styled-run content block.

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.