API Reference
Function
New-TablePercentageBar
Creates a new table percentage bar object with specified attributes.
Remarks
This function creates a new table percentage bar object with the provided attributes. It allows customization of the appearance of the percentage bar within a table.
Examples
EXAMPLE 1
New-TablePercentageBar -ColumnID 1 -ColumnName "Progress" -Type 'round' -TextColor "#ffffff" -BorderColor "#000000" -BorderStyle 'solid' -BarColor "#00ff00" -BackgroundColor "#ffffff" -RoundValue 2
Description: Creates a new table percentage bar object for the column "Progress" with specified attributes.
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-TablePercentageBar [-BackgroundColor <String>] [-BarColor <String>] [-BorderColor <String>] [-BorderStyle <solid|outset|groove|ridge>] [-ColumnID <Int32>] [-ColumnName <String>] [-ConditionalFormatting <ScriptBlock>] [-RoundValue <Int32>] [-TextColor <String>] [-Type <square|round>] [<CommonParameters>]
#
Parameter set:
All Parameter SetsParameters
- BackgroundColor String
- Specifies the background color of the percentage bar.
- BarColor String
- Specifies the color of the percentage bar itself.
- BorderColor String
- Specifies the color of the border of the percentage bar.
- BorderStyle String
- Specifies the style of the border of the percentage bar. Valid values are 'solid', 'outset', 'groove', or 'ridge'.
- Possible values:
solid,outset,groove,ridge - ColumnID Int32
- Specifies the ID of the column where the percentage bar will be displayed.
- ColumnName String
- Specifies the name of the column where the percentage bar will be displayed.
- ConditionalFormatting ScriptBlock
- Specifies any conditional formatting rules for the percentage bar.
- RoundValue Int32
- Specifies the decimal places to round the percentage value to.
- TextColor String
- Specifies the color of the text within the percentage bar.
- Type String
- Specifies the shape of the percentage bar. Valid values are 'square' or 'round'.
- Possible values:
square,round