< Back

New-ColorLineItem

Sun Jan 19, 2020 6:26 pm

NAME New-ColorLineItem



SYNOPSIS

Utility to create a ColorLineItem custom object.





SYNTAX

New-ColorLineItem [-ForegroundColor] {Black | DarkBlue | DarkGreen | DarkCyan | DarkRed | DarkMagenta | DarkYellow

| Gray | DarkGray | Blue | Green | Cyan | Red | Magenta | Yellow | White} [-BackgroundColor] {Black | DarkBlue |

DarkGreen | DarkCyan | DarkRed | DarkMagenta | DarkYellow | Gray | DarkGray | Blue | Green | Cyan | Red | Magenta

| Yellow | White} [-Text] <String> [<CommonParameters>]





DESCRIPTION

Easily create a color line obkect.

These objects have the structure

@{ bg, fg, text }

where bg is the background color

fg is the foreground color

and text is the display text.





PARAMETERS

-ForegroundColor



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-BackgroundColor



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Text <String>



Required? true

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS







OUTPUTS

PsCustomObject





-------------------------- EXAMPLE 1 --------------------------



C:\\PS><example usage>



Explanation of what the example does











RELATED LINKS