GrapeCity.Xaml.Excel
FromArgb(Int32,Int32,Int32) Method


GrapeCity.Excel Namespace > GcColor Structure > FromArgb Method : FromArgb(Int32,Int32,Int32) Method
The red component value for the new GrapeCity.Excel.GcColor Valid values are 0 through 255
The green component value for the new GrapeCity.Excel.GcColor Valid values are 0 through 255
The blue component value for the new GrapeCity.Excel.GcColor Valid values are 0 through 255
Create a GrapeCity.Excel.GcColor structure from the specified 8-bit color values (red,green and blue) The alpha value is implicitly 255 (fully opaque).Although this method allows a 32-bit value to be passed for each color 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 GcColor
'Usage
 
Dim red As Integer
Dim green As Integer
Dim blue As Integer
Dim value As GcColor
 
value = GcColor.FromArgb(red, green, blue)
public static GcColor FromArgb( 
   int red,
   int green,
   int blue
)

Parameters

red
The red component value for the new GrapeCity.Excel.GcColor Valid values are 0 through 255
green
The green component value for the new GrapeCity.Excel.GcColor Valid values are 0 through 255
blue
The blue component value for the new GrapeCity.Excel.GcColor Valid values are 0 through 255

Return Value

The GrapeCity.Excel.GcColor that this method creates.
See Also

Reference

GcColor Structure
GcColor Members
Overload List