API Reference
Command
Add-OfficeWordTableCondition
Attaches conditional formatting logic to the current table.
Remarks
Attaches conditional formatting logic to the current table.
Examples
Shade rows above threshold.
PS>WordTableCondition -FilterScript { $_.Qty -gt 10 } -BackgroundColor '#fff4d6'
Applies a light highlight when the quantity column exceeds 10.
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-OfficeWordTableCondition [-BackgroundColor <String>] -FilterScript <ScriptBlock> [-TableStyle <Nullable`1>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- BackgroundColor String
- Row highlight color applied when the predicate matches (ARGB hex).
- FilterScript ScriptBlock
- Predicate executed per data row (uses $_).
- TableStyle Nullable`1
- Optional table style applied when the predicate matches.
Outputs
System.Object