Project

PSWriteOffice

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

Stars 654
Forks 82
Open issues 1
Total downloads 4,320,051
Release OfficeIMO-v3.5.3
Language: C# Updated: 2026-11-03
Cmdlet

Set-OfficeExcelChartStyle

Module
PSWriteOffice
Inputs
OfficeIMO.Excel.ExcelChart
Outputs
OfficeIMO.Excel.ExcelChart

Applies a built-in style and color preset to an Excel chart.

Syntax

Set-OfficeExcelChartStyle
-Chart <ExcelChart>
[-ColorStyleId <Int32>]
[-PassThru]
[-StyleId <Int32>]
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Apply the default OfficeIMO preset.

$chart | Set-OfficeExcelChartStyle

Applies the default chart style and returns the chart for chaining.

Parameters

-Chart ExcelChart requiredpipeline: True (ByValue)
Chart to update.
-ColorStyleId Int32 optional
Chart color style identifier.
-PassThru SwitchParameter optional
Emit the object created or changed by the command.
-StyleId Int32 optional
Chart style identifier.

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.