PSStyle.BackgroundColor.FromConsoleColor(ConsoleColor) Method

Definition

Return the VT escape sequence for a background color.

public string FromConsoleColor (ConsoleColor color);
member this.FromConsoleColor : ConsoleColor -> string
Public Function FromConsoleColor (color As ConsoleColor) As String

Parameters

color
ConsoleColor

The background color to be mapped from.

Returns

The VT escape sequence representing the background color.

Applies to