Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Description

Excerpt

Returns the a color in representing the palette that has the specified RGB value. An , 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.
Signature
C#
C#

 public Color GetColor(int red, int green, int blue)
Signature
vb.net
vb.net

Public Function GetColor(ByVal red As Integer, ByVal green As Integer, ByVal blue As Integer) As Color

Parameters
Param
red
red

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

...