...
Description |
---|
Excerpt |
---|
Returns a Color representing the specified color, and throws an exception if the file does not support the specified color. |
Signature | ||||
---|---|---|---|---|
| ||||
public Color GetColor(System.Drawing.Color color)
{signature}{signature: |
Signature | ||||||
---|---|---|---|---|---|---|
| }
| |||||
Public Function GetColor(ByVal color As System.Drawing.Color) As Color
{signature}
{parameters}
{param:color}The desired color.{param}
{returns}A {msdn: |
Parameters |
---|
Param | ||||
---|---|---|---|---|
| ||||
The desired color. |
Returns | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A
|
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 | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|