Spread Windows Forms 15.0
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / Color Structure / FromArgb Method / FromArgb(Int32,Int32,Int32) Method
The red component. Valid values are 0 through 255.
The green component. Valid values are 0 through 255.
The blue component. Valid values are 0 through 255.


In This Topic
    FromArgb(Int32,Int32,Int32) Method
    In This Topic
    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.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function FromArgb( _
       ByVal red As Integer, _
       ByVal green As Integer, _
       ByVal blue As Integer _
    ) As Color
    'Usage
     
    
    Dim red As Integer
    Dim green As Integer
    Dim blue As Integer
    Dim value As Color
     
    value = Color.FromArgb(red, green, blue)
    public static Color FromArgb( 
       int red,
       int green,
       int blue
    )

    Parameters

    red
    The red component. Valid values are 0 through 255.
    green
    The green component. Valid values are 0 through 255.
    blue
    The blue component. Valid values are 0 through 255.

    Return Value

    The Color value that this method creates.
    See Also