Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Moved most of description to remarks
Description

Excerpt

Returns the closest color to the specified color 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 color exactly.

Signature
C#
C#

 public Color GetClosestColor(System.Drawing.Color color)
Signature
vb.net
vb.net

Public Function GetClosestColor(ByVal color As System.Drawing.Color) 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 color exactly.

Parameters
Param
color
color

The desired color.

...