Layers
A Layer is an element that contains different objects (e.g., images) to define the visual presentation of a gauge and its elements.
Layers can be added at two levels:
- At the Gauge control level. In this case, layers are represented by CircularGaugeLayer objects contained in the CircularGaugeLayerCollection object, which can be accessed via the CircularGauge.Layers property.
- At the Arc Scale level. In this case, layers are represented by ArcScaleLayer objects contained in the ArcScaleLayerCollection object, which can be accessed via the ArcScale.Layers property.
For example, the following picture illustrates two layers - one is added to the CircularGauge and therefore occupies the entire Gauge control area, and the other is added to the ArcScale object.
Every new layer is painted behind all other gauge elements because its GaugeOptionsBase.ZIndex property is set to -100 by default. To bring this layer to the front of other gauge elements (or paint it above other layers, if there are any), set the ZIndex property to a greater value.