OfficeIMO

API Reference

Command

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

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