Description |
---|
Excerpt |
---|
Returns the color in the palette identical to the specified color. An exception will be thrown if the color is not in the palettea 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) |
...
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 | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|