# New-TablePercentageBarCondition

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

Project

PSWriteHTML

Generate HTML reports, dashboards, and emails from PowerShell without writing HTML, CSS, or JavaScript.

[View on GitHub](https://github.com/EvotecIT/PSWriteHTML) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteHTML/releases/tag/v1.41.0) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteHTML/1.40.0)

Stars **1,025**

Forks **114**

Open issues 

PowerShell Gallery downloads **7,576,901**

Release **v1.45.0**

Language: PowerShell Updated: 2026-11-19

Command 

**Module**

`PSWriteHTML`

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

## Syntax

```
New-TablePercentageBarCondition
[[-BackgroundColor] <String>]
[[-BarColor] <String>]
[-Maximum] <Int32>
[-Minimum] <Int32>
[[-TextColor] <String>]
[<CommonParameters>]
```

[#](#method-new-tablepercentagebarcondition-string-string-int32-int32-string)

Parameter set: `All Parameter Sets`

## Description

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

### Example 1

```powershell
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

```powershell
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

```powershell
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

```powershell
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.
```

## Parameters

**-BackgroundColor String optionalposition: 2**

Specifies the background color for the percentage bar.

**-BarColor String optionalposition: 4**

Specifies the color of the percentage bar.

**-Maximum Int32 requiredposition: 1**

Specifies the maximum value for the percentage range.

**-Minimum Int32 requiredposition: 0**

Specifies the minimum value for the percentage range.

**-TextColor String optionalposition: 3**

Specifies the text color for the percentage bar.

## 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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:E92E97261485CF4ACC6944EB5C3ADB03DF01850EEC12155F2ED62B4D2ED850CA -->
