Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: reordererd

...

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.

Returns

A

Msdn
System.Drawing.Color
System.Drawing.Color
1Color
object in the palette that matches the specified 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.

Example
Code Block
csharp
csharp
titleC#
Color clr = pal.GetColor(System.Drawing.Color.Red);
Code Block
vb.net
vb.net
titlevb.net
Dim clr As Color = pal.GetColor(System.Drawing.Color.Red)