天软金融分析.NET函数大全 > TSL函数 > 图形函数 > 作图函数

GetColorByIndex    

简述
依据Index值,获得颜色数组内的指定颜色整数代号。
Index值 代号对应颜色
0 ClRed()
1 clBlue()
2 clGreen()
3 ClFuchsia()
4 ClLime()
5 ClPurple()
6 ClTeal()
7 clMaroon()
8 clNavy()
9 ClDkGray()
10 clOlive()
11 clYellow()
12 clMedGray()
13 ClGray()
14 ClLtGray()
15 ClSilver()
16 clMoneyGreen()
定义
GetColorByIndex(Index:integer):integer
参数
名称类型说明
Indexinteger整数,颜色索引号
返回integer整数
  • 范例

    return GetColorByIndex(1);
    //返回:16711680
相关