Evotec

Project

PSWriteHTML

PSWriteHTML is an open-source PowerShell project with packages, release history, and working documentation.

Stars 995
Forks 114
Open issues 69
PowerShell Gallery downloads 7,436,513
Release v1.41.0
Language: PowerShell Updated: 2026-04-11

API Reference

Function

New-TablePercentageBarCondition

Namespace PSWriteHTML

Creates a new table percentage bar condition object with specified attributes.

Remarks

This function creates a new table percentage bar condition object with the provided attributes. It defines the minimum and maximum values for the percentage range, along with the colors for the background, text, and bar.

Examples

Authored help example

EXAMPLE 1


New-TablePercentageBarCondition -Minimum 0 -Maximum 10 -BackgroundColor "#ff0000" -TextColor "#ffffff" -BarColor "#ff0000"
Creates a new table percentage bar condition object for the range 0-10 with specified colors.
        

EXAMPLE 2


New-TablePercentageBarCondition -Minimum 11 -Maximum 20 -BackgroundColor "#00ff00" -BarColor "#00ff00"
Creates a new table percentage bar condition object for the range 11-20 with specified colors.
        

EXAMPLE 3


New-TablePercentageBarCondition -Minimum 21 -Maximum 23 -BackgroundColor "#0000ff" -BarColor "#0000ff"
Creates a new table percentage bar condition object for the range 21-23 with specified colors.
        

EXAMPLE 4


New-TablePercentageBarCondition -Minimum 24 -Maximum 100 -BackgroundColor "#00FFFF" -BarColor "#00FFFF"
Creates a new table percentage bar condition object for the range 24-100 with specified colors.
        

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

New-TablePercentageBarCondition [-BackgroundColor <String>] [-BarColor <String>] -Maximum <Int32> -Minimum <Int32> [-TextColor <String>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

BackgroundColor String optionalposition: 2pipeline: False
Specifies the background color for the percentage bar.
BarColor String optionalposition: 4pipeline: False
Specifies the color of the percentage bar.
Maximum Int32 requiredposition: 1pipeline: False
Specifies the maximum value for the percentage range.
Minimum Int32 requiredposition: 0pipeline: False
Specifies the minimum value for the percentage range.
TextColor String optionalposition: 3pipeline: False
Specifies the text color for the percentage bar.