Spread Silverlight Documentation
FromArgb(Int32,Int32,Int32,Int32) Method


The alpha component value for the new GrapeCity.Excel.GcColor Valid values are 0 through 255
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) 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 alpha As System.Integer, _
   ByVal red As System.Integer, _
   ByVal green As System.Integer, _
   ByVal blue As System.Integer _
) As GcColor
'Usage
 
Dim alpha As System.Integer
Dim red As System.Integer
Dim green As System.Integer
Dim blue As System.Integer
Dim value As GcColor
 
value = GcColor.FromArgb(alpha, red, green, blue)
public static GcColor FromArgb( 
   System.int alpha,
   System.int red,
   System.int green,
   System.int blue
)

Parameters

alpha
The alpha component value for the new GrapeCity.Excel.GcColor Valid values are 0 through 255
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.
Requirements

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

GcColor Structure
GcColor Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.