[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.Color.FromArgb

FromArgb Method

FromArgb(int)

Creates a Color structure from the four 8-bit ARGB components (alpha, red, green, and blue) values.

Declaration
public static Color FromArgb(int argb)
Public Shared Function FromArgb(argb As Integer) As Color
Parameters
Type Name Description
int argb

The ARGB components.

Returns
Type Description
Color

The Color value that this method creates.

FromArgb(int, int, int, int)

Creates a Color structure from the four 8-bit ARGB components (alpha, red, green, and blue) values. Although this method allows a 32-bit value to be passed for each component, the value of each component is limited to 8 bits.

Declaration
public static Color FromArgb(int alpha, int red, int green, int blue)
Public Shared Function FromArgb(alpha As Integer, red As Integer, green As Integer, blue As Integer) As Color
Parameters
Type Name Description
int alpha

The alpha component. Valid values are 0 through 255.

int red

The red component. Valid values are 0 through 255.

int green

The green component. Valid values are 0 through 255.

int blue

The blue component. Valid values are 0 through 255.

Returns
Type Description
Color

The Color value that this method creates.

FromArgb(int, int, int)

Creates a Color structure from the four 8-bit ARGB components (alpha, red, green, and blue) values. Although this method allows a 32-bit value to be passed for each component, the value of each component is limited to 8 bits.

Declaration
public static Color FromArgb(int red, int green, int blue)
Public Shared Function FromArgb(red As Integer, green As Integer, blue As Integer) As Color
Parameters
Type Name Description
int red

The red component. Valid values are 0 through 255.

int green

The green component. Valid values are 0 through 255.

int blue

The blue component. Valid values are 0 through 255.

Returns
Type Description
Color

The Color value that this method creates.