Color.Color

This page contains reference documentation for the Color constructor. This constructor constructs a Color object with the specified red, green, blue, and alpha values.

Prototype

Color( int R, int G, int B, int A )

Parameters

Function parameters are as follows:

Examples

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 );

Working Sample Code

For sample code: