Returns the color at the specified 0-based index within the Palette. For .xlsx files, this will return a color from the legacy palette. Colors in the legacy palette will be used when opening the file in Excel 2003.

 public Color GetColorAt(int index)
Public Function GetColorAt(ByVal index As Integer) As Color

The 0-based index of the color to return. Must be between 0 and 55.

The color at the specified index.

Color clr = pal.GetColorAt(4);
Dim clr As Color = pal.GetColorAt(4)