API Reference
Command
Add-OfficeExcelConditionalIconSet
Adds an icon set conditional format to a range.
Remarks
Adds an icon set conditional format to a range.
Examples
Add traffic light icons.
PS>ExcelSheet 'Data' { Add-OfficeExcelConditionalIconSet -Range 'E2:E50' -IconSet ThreeTrafficLights1 }
Applies a traffic-light icon set.
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
Add-OfficeExcelConditionalIconSet [-IconSet <String>] [-NumberThresholds <Double[]>] [-PassThru] [-PercentThresholds <Double[]>] -Range <String> [-Reverse <Boolean>] [-ShowValue <Boolean>] [<CommonParameters>]#Parameter set:
ContextParameters
- IconSet String
- Icon set to apply.
- NumberThresholds Double[]
- Number thresholds matching the icon count.
- PassThru SwitchParameter
- Emit the range after applying the format.
- PercentThresholds Double[]
- Percent thresholds (0..100) matching the icon count.
- Range String
- A1 range to format.
- Reverse Boolean
- Reverse the icon order.
- ShowValue Boolean
- Show the underlying values.
Outputs
System.Object
Add-OfficeExcelConditionalIconSet -Document <ExcelDocument> [-IconSet <String>] [-NumberThresholds <Double[]>] [-PassThru] [-PercentThresholds <Double[]>] -Range <String> [-Reverse <Boolean>] [-Sheet <String>] [-SheetIndex <Nullable`1>] [-ShowValue <Boolean>] [<CommonParameters>]#Parameter set:
DocumentParameters
- Document ExcelDocument
- Workbook to operate on outside the DSL context.
- IconSet String
- Icon set to apply.
- NumberThresholds Double[]
- Number thresholds matching the icon count.
- PassThru SwitchParameter
- Emit the range after applying the format.
- PercentThresholds Double[]
- Percent thresholds (0..100) matching the icon count.
- Range String
- A1 range to format.
- Reverse Boolean
- Reverse the icon order.
- Sheet String
- Worksheet name when using Document.
- SheetIndex Nullable`1
- Worksheet index (0-based) when using Document.
- ShowValue Boolean
- Show the underlying values.
Outputs
System.Object