Page tree

Versions Compared

Key

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

...

Excerpt

Returns a Color representing the specified color, and throws an exception if the file does not support the specified color. For .xls files, an exception will be thrown if the color is not in the palette. For .xlsx files, a Color will always be returned.

Signature
C#
C#
 public Color GetColor(System.Drawing.Color color)
Signature
vb.net
vb.net
Public Function GetColor(ByVal color As System.Drawing.Color) As Color
Remarks

For .xls files, an exception will be thrown if the color is not in the palette. For .xlsx files, a Color will always be returned.

Parameters
Param
color
color

The desired color.

...