Represents the color palette used when the saved file is opened in Microsoft Excel 2003 and earlier versions.
Inheritance
object
Implements
- ICollection<Color>
- IEnumerable<Color>
- IEnumerable
Properties
Section titled "Properties"Count
Section titled "Count"Gets the number of colors in the palette, which is always 56.
public int Count { get; } IsCustom
Section titled "IsCustom"Gets the value which indicates whether the palette has been cusotmized.
public bool IsCustom { get; } this[int]
Section titled "this[int]"Gets or sets a color in the palette.
public Color this[int index] { get; set; } Methods
Section titled "Methods"Contains(Color)
Section titled "Contains(Color)"Determines whether the specified color is in the color palette.
public bool Contains(Color color) Parameters
- color:
Color
Returns any
GetIndexOfNearestColor(Color)
Section titled "GetIndexOfNearestColor(Color)"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
Reset()
Section titled "Reset()"Resets the palette back to the default colors for Microsoft Excel.
public void Reset()