다음을 통해 공유


PSStyle.ForegroundColor.FromConsoleColor(ConsoleColor) Method

Definition

Return the VT escape sequence for a foreground color.

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

Parameters

color
ConsoleColor

The foreground color to be mapped from.

Returns

The VT escape sequence representing the foreground color.

Applies to