Freigeben über


PSStyle.ForegroundColor.FromRgb Method

Definition

Overloads

FromRgb(Int32)

The color set as RGB as a single number.

FromRgb(Byte, Byte, Byte)

Set as RGB (Red, Green, Blue).

FromRgb(Int32)

The color set as RGB as a single number.

public string FromRgb (int rgb);
member this.FromRgb : int -> string
Public Function FromRgb (rgb As Integer) As String

Parameters

rgb
Int32

RGB value specified as an integer.

Returns

String representing ANSI code for RGB value.

Applies to

FromRgb(Byte, Byte, Byte)

Set as RGB (Red, Green, Blue).

public string FromRgb (byte red, byte green, byte blue);
member this.FromRgb : byte * byte * byte -> string
Public Function FromRgb (red As Byte, green As Byte, blue As Byte) As String

Parameters

red
Byte

Byte value representing red.

green
Byte

Byte value representing green.

blue
Byte

Byte value representing blue.

Returns

String representing ANSI code for RGB value.

Applies to