Represents the color palette used when the saved file is opened in Microsoft Excel 2003 and earlier versions.

Inheritance

Implements
  • ICollection<Color>
  • IEnumerable<Color>
  • IEnumerable

Gets the number of colors in the palette, which is always 56.

public int Count { get; }

Gets the value which indicates whether the palette has been cusotmized.

public bool IsCustom { get; }

Gets or sets a color in the palette.

public Color this[int index] { get; set; }

Determines whether the specified color is in the color palette.

public bool Contains(Color color)

Parameters

  • color: Color

Returns any

Gets the index of the closest color in the color palette, which will be seen when the file is opened in Microsoft Excel 2003 and older versions.

public int GetIndexOfNearestColor(Color color)

Parameters

  • color: Color

Returns any

Resets the palette back to the default colors for Microsoft Excel.

public void Reset()

Returns any