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

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Description

Returns a color representing the specified RGB value, and throws an exception if the file does not support the specified color. For .xls files, an exception will be thrown if no color in the palette has the specified RGB value. For .xlsx files, a color will be returned for any RGB values.

C#
vb.net

Parameters

red
The red component of the desired color. Must be between 0 and 255.
green
the green component of the desired color. Must be between 0 and 255.
blue
the blue component of the desired color. Must be between 0 and 255.

Returns

A Color object representing the color with the specified RGB value.

Examples

C#
vb.net
  • No labels