Cmdlet
Set-OfficeExcelChartStyle
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 SetsExamples
Apply the default OfficeIMO preset.
$chart | Set-OfficeExcelChartStyleApplies the default chart style and returns the chart for chaining.
Parameters
- -Chart ExcelChart
- Chart to update.
- -ColorStyleId Int32
- Chart color style identifier.
- -PassThru SwitchParameter
- Emit the object created or changed by the command.
- -StyleId Int32
- 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.