ChartDirector 6.2 (.NET Edition)



[C#] public Layer getLayerByZ(int zIndex);
[VB] Public Function getLayerByZ(zIndex As Integer) As Layer


Gets a Layer object based on the order in which it is being drawn.

In ChartDirector, by default, the first layer added will stay on the top of the chart. The second layer will be added under the first layer, and so on. It means The layers will be drawn in the reverse order that they are added to the chart. The ordering can be configured with Layer.moveFront or Layer.moveBack.


zIndex(Mandatory)The z-index of the required layer. The z-index of the first layer drawn is 0. The z-index for the Nth layer drawn is N - 1.

Return Value

The Layer object at the specified z-order.