[VB] | Public Sub setColorMethod(colorMethod As Integer, riseColor As Integer [, fallColor As Integer [, leadValue As Double ]]) |
[C#] | public void setColorMethod(int colorMethod, int riseColor [, int fallColor [, double leadValue ]]); |
ChartDirector 5.1 (.NET Edition)
HLOCLayer.setColorMethod
Usage
[VB] | Public Sub setColorMethod(colorMethod As Integer, riseColor As Integer [, fallColor As Integer [, leadValue As Double ]]) |
[C#] | public void setColorMethod(int colorMethod, int riseColor [, int fallColor [, double leadValue ]]); |
Description
Arguments
Argument | Default | Description |
---|---|---|
colorMethod | (Mandatory) | The method to color the HLOC layer. Please refer to XYChart.addHLOCLayer3 for the supported coloring methods. |
riseColor | (Mandatory) | The color to be used on an "up" day. |
fallColor | -1 | The color to be used on a "down" day. -1 means it is the same as the riseColor. |
leadValue | [-Infinity] | The lead value to act as the closing pricing before the first day, so as to determine if the first day is an "up" or "down" day. |
Return Value