Returns an IPalette interface that represents the color palette of the specified workbook.
[Visual Basic] Property ReadOnly Colors As IPalette [C#] IPalette Colors { get; } [C++] __property IPalette* get_Colors(); [JScript] function get Colors() : IPalette
IPalette interface.
This example changes color ten in the color palette for the workbook.
[C#]
book.Colors[10] = System.Drawing.Color.FromArgb(200, 100, 100);
[Visual Basic]
book.Colors(10) = System.Drawing.Color.FromArgb(200, 100, 100)
[C++]
book->Colors->Item[10] = System::Drawing::Color::FromArgb(200, 100, 100);
IWorkbook Interface | NativeExcel Namespace | IPalette Interface