This page contains reference documentation for the Color constructor. This constructor constructs a Color object with the specified red, green, blue, and alpha values.
Color( int R, int G, int B, int A )
Function parameters are as follows:
Examples are as follows:
// Set the worksheet top color to middle gray. a_oView.TopColor.R = 128; a_oView.TopColor.G = 128; a_oView.TopColor.B = 128; // Set the worksheet top color to middle gray. a_oView.TopColor.SetRGB( 128, 128, 128 );
For sample code: