Table of Contents

ExcelFile.GetColorPalette Method

Overloads

ExcelFile.GetColorPalette(Int32)

Returns a color from the color palette. This method will throw an exception if its "index" parameter is bigger than ColorPaletteCount, (for example, for an automatic color). To get the real color, use GetColorPalette(Int32, TUIColor)

Syntax

Namespace: FlexCel.Core

public abstract TUIColor GetColorPalette(Int32 index)

Parameters

<-> Parameter Type Description
index Int32 Index of the entry to return. Must be 1<=index<=ColorPaletteCount

Returns

Color at position index.

See also

ExcelFile.GetColorPalette(Int32, TUIColor)

Returns a color from the color palette. If the index is not into the range 1<=index<=ColorPaletteCount this method will return the automaticColor.

Remarks

ColorIndexes returned by FlexCel might be <=0 or >ColorPaletteCount if the color is set to Automatic.

Automatic color is white for backgrounds, black for foregrounds and gray for gridlines.

Syntax

Namespace: FlexCel.Core

public TUIColor GetColorPalette(Int32 index, TUIColor automaticColor)

Parameters

<-> Parameter Type Description
index Int32
automaticColor TUIColor

See also