Page tree
Skip to end of metadata
Go to start of metadata

Description

Sets the fill color for the shape to be the specified custom RGB value, and returns the generated Color. This method allows a shape to have a color not defined in the worksheet's Palette.

C#
vb.net

Parameters

red
The red component of the RGB value.
green
The green component of the RGB value.
blue
The blue component of the RGB value.

Returns

A Color object representing the fill color.

Exceptions

System.ArgumentOutOfRangeException
If the given red, green, or blue value is not between 0 and 255.
  • No labels