跳至内容

SetIndexStyle

SetIndexStyle

设置给定指示线的新类型、样式、宽度和颜色。

void  SetIndexStyle(
   int     index,       // line index
   int     type,        // line type
   int     style=EMPTY, // line style
   int     width=EMPTY, // line width
   color   clr=clrNONE  // line color
   );

参数

index

[in] 行索引。必须在0到7之间。

type

[in] 形状样式。可以是绘图形状样式中列出的一种。

style=EMPTY

[in] 绘图样式。用于单像素厚度的线条。可以是绘图形状样式中列出的一种。EMPTY值表示不会更改样式。

width=EMPTY

[in] 线宽。有效值为:1,2,3,4,5。EMPTY值表示不会更改宽度。

clr=clrNONE

[in] 线条颜色。缺少此参数表示不会更改颜色。

返回值

无。

示例:

SetIndexStyle(3,DRAW_LINE,EMPTY,2,clrRed);

另请参阅

自定义指示属性

最后更新于