Freigeben über


PSStyle.ForegroundColor Class

Definition

Contains foreground colors.

public sealed class PSStyle.ForegroundColor
type PSStyle.ForegroundColor = class
Public NotInheritable Class PSStyle.ForegroundColor
Inheritance
PSStyle.ForegroundColor

Constructors

PSStyle.ForegroundColor()

Properties

Black

Gets the color black.

Blue

Gets the color blue.

BrightBlack

Gets the color bright black.

BrightBlue

Gets the color bright blue.

BrightCyan

Gets the color bright cyan.

BrightGreen

Gets the color bright green.

BrightMagenta

Gets the color bright magenta.

BrightRed

Gets the color bright red.

BrightWhite

Gets the color bright white.

BrightYellow

Gets the color bright yellow.

Cyan

Gets the color cyan.

Green

Gets the color green.

Magenta

Gets the color magenta.

Red

Gets the color red.

White

Gets the color white.

Yellow

Gets the color yellow.

Methods

FromConsoleColor(ConsoleColor)

Return the VT escape sequence for a foreground color.

FromRgb(Byte, Byte, Byte)

Set as RGB (Red, Green, Blue).

FromRgb(Int32)

The color set as RGB as a single number.

Applies to