Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: moved some of docs to remarks
Description

Excerpt

Returns the closest color to the specified RGB value that the file can support.

For .xls files, this will be the color in the palette that has the minimum difference between the specified RGB value and its RGB value. .xlsx files are not limited to colors in the palette, and will return a Color representing the specified RGB values exactly.

Signature
C#
C#

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

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

For .xls files, this will be the color in the palette that has the minimum difference between the specified RGB value and its RGB value. .xlsx files are not limited to colors in the palette, and will return a Color representing the specified RGB values exactly.

Parameters
Param
red
red

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

...