Message-ID: <198043313.10401.1711723715359.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_10400_387420031.1711723715359" ------=_Part_10400_387420031.1711723715359 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html Palette.GetColor(System.Drawing.Color)

Palette.GetColor(System.Drawing.Color)

Descr= iption

=20

Returns a Color representing the spe= cified color, and throws an exception if the file does not support the spec= ified color.

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

Parameters=20

color
The desi= red color.=20

Returns

A=20 Color object in the palet= te that matches the specified color.=20

Remarks

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

Examples

=20
C#
=20
Color clr =3D pal.GetColor(System.Drawing.Color.Red);
=20
=20
vb.net
=20
Dim clr As Color =3D pal.GetColor(System.Drawing.Color.Red)
=20
------=_Part_10400_387420031.1711723715359--