TExcelColor.FromIndex Method
Overloads
TExcelColor.FromIndex(Int32)
Returns a color class with a specified color index. For compatibility with old code, you can enter any index here. If the value is less than 1 or more than 56, it will assume automatic color.
Syntax
Namespace: FlexCel.Core
public static TExcelColor FromIndex(Int32 index)
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
index | Int32 | Index to the color palette. (1 based) |
See also
TExcelColor.FromIndex(Int32, Double)
Returns a color class with a specified color index. For compatibility with old code, you can enter any index here. If the value is less than 1 or more than 56, it will assume automatic color.
Syntax
Namespace: FlexCel.Core
public static TExcelColor FromIndex(Int32 index, Double tint)
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
index | Int32 | Index to the color palette. (1 based) | |
tint | Double | Tint for the color. If you try to set a value less than -1 it will be stored as -1, and values bigger than 1 as 1. No exceptions will be raised. |