API Reference

Cmdlet

Add-OfficeWordTableCondition

Namespace PSWriteOffice
Inputs
None
Outputs
System.Object

Attaches conditional formatting logic to the current table.

Remarks

Attaches conditional formatting logic to the current table.

Examples

Authored help example

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 Sets

Parameters

BackgroundColor String optionalposition: namedpipeline: False
Row highlight color applied when the predicate matches (ARGB hex).
FilterScript ScriptBlock requiredposition: namedpipeline: False
Predicate executed per data row (uses $_).
TableStyle Nullable`1 optionalposition: namedpipeline: False
Optional table style applied when the predicate matches.

Outputs

System.Object