IWorkbook
Palette Property
|
Get Palette of colors which an Excel document can have.
Here is a table of color indexes to places in the color tool box
provided by Excel application:
--------------------------------------------
|| 1| 2| 3| 4| 5| 6| 7| 8|
---+----------------------------------------
|1 | 00 | 51 | 50 | 49 | 47 | 10 | 53 | 54 |
|2 | 08 | 45 | 11 | 09 | 13 | 04 | 46 | 15 |
|3 | 02 | 44 | 42 | 48 | 41 | 40 | 12 | 55 |
|4 | 06 | 43 | 05 | 03 | 07 | 32 | 52 | 14 |
|5 | 37 | 39 | 35 | 34 | 33 | 36 | 38 | 01 |
---+----------------------------------------
|6 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 |
|7 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
--------------------------------------------
Examples
The following code illustrates how to access the default colors of excel color palette:
Namespace:
Spire.Xls.Core
Assembly:
Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
ReadOnly Property Palette As Color()
Get
property array<Color>^ Palette {
array<Color>^ get ();
}
abstract Palette : Color[] with get
Property Value
Type:
Color
See Also