Description |
---|
Excerpt |
---|
Returns a Color representing the specified color, and throws an exception if the file does not support the specified color. |
Signature | C# | C# |
---|---|---|
Wiki Markup | ||
{description}
{excerpt}Returns a [Color] representing the specified color, and throws an exception if the file does not support the specified color.{excerpt}
{signature:C#}
public Color GetColor(System.Drawing.Color color)
| ||
Signature | ||
{signature}{signature:vb.net | vb.net | }
Public Function GetColor(ByVal color As System.Drawing.Color) As Color
|
Parameters |
---|
Param | color | color |
---|---|---|
The desired color. | ||
Returns | ||
A Msdn | {signature} {parameters} {param:color}The desired color.{param} {returns}A {msdn:System.Drawing.Color | System.Drawing.Color |
1 | 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 |
title | C# | ||
Code Block | vb.net | title |