Evotec

Project

PSWriteOffice

PSWriteOffice is an open-source PowerShell and .NET project with packages, release history, and technical documentation.

Stars 144
Forks 12
Open issues 16
PowerShell Gallery downloads 150,904
Release v0.2.0
Language: C# Updated: 2026-04-06

API Reference

Cmdlet

Set-OfficeExcelChartStyle

Namespace PSWriteOffice
Inputs
OfficeIMO.Excel.ExcelChart
Outputs
OfficeIMO.Excel.ExcelChart

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

Remarks

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

Examples

Authored help example

Apply the default OfficeIMO preset.

PS>


$chart | Set-OfficeExcelChartStyle
        

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

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.

Syntax

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

Parameters

Chart ExcelChart requiredposition: namedpipeline: True (ByValue)
Chart to update.
ColorStyleId Int32 optionalposition: namedpipeline: False
Chart color style identifier.
StyleId Int32 optionalposition: namedpipeline: False
Chart style identifier.

Outputs

OfficeIMO.Excel.ExcelChart