API Reference
Command
Set-OfficeExcelChartStyle
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
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 SetsParameters
- Chart ExcelChart
- Chart to update.
- ColorStyleId Int32
- Chart color style identifier.
- StyleId Int32
- Chart style identifier.
Outputs
OfficeIMO.Excel.ExcelChart