...
Excerpt |
---|
Replaces the color at the specified index in the palette with a new color. |
Signature | ||||
---|---|---|---|---|
| ||||
public Color SetColorAt(int index, int red, int green, int blue) |
...
Returns | ||||||||
---|---|---|---|---|---|---|---|---|
A
|
Exceptions |
---|
Exception | ||||
---|---|---|---|---|
| ||||
If the given red, green, or blue value is not between 0 and 255. |
Remarks |
---|
Any objects that reference this palette color will be updated to use the new RGB values instead. For .xlsx files, this will modify the legacy palette, which is used when opening the file in Excel 2003. |
Example | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|