Version

Search Results

WorkbookColorInfo Constructor(WorkbookThemeColorType,Double)

Creates a new WorkbookColorInfo with the specified theme color and tint. Syntax Parameters themeColorType The type of theme color which should be the base color when the WorkbookColorInfo is used.tint The tint to apply to the base color, from -1.0 (100% darken) to 1.0 (100% lighten). Exceptions Exception Descripti...

WorkbookColorPalette Class

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

WorkbookColorPalette Class Members

Public Properties Public Methods

Contains Method (WorkbookColorPalette)

Determines whether the specified color is in the color palette. Syntax Parameters color The color to find in the palette. Return Value Determines whether an equivalent color is in the palette.

Count Property (WorkbookColorPalette)

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

GetIndexOfNearestColor Method

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. Syntax Parameters color The color to match in the palette. Return Value A 0-based index into the collection of the closest color available in the palette.

IsCustom Property (WorkbookColorPalette)

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