property Gauge.LayerOfValue as Long
Specifies the index of the layer whose value represents the control's Value property.

TypeDescription
Long A Long expression that specifies the index of the layer whose Value represents the control's Value property, or -1 to which indicates that last visible layer with OnDrag property set.
By default, the LayerOfValue property is -1, which indicates that the last visible layer whose OnDrag property is not exDoNothing, is the layer that specifies the control's value. The LayerOfValue property specifies the index of the layer whose value represents the control's Value property. The layer's Value could indicate its offset or its rotation angle, based on the OnDrag property. The OnDrag property indicates the action to be performed when the user drags the layer ( dragable ).  Use the Value property of the Clip object to associate a value with the layer's clipping region. Each layer can associate a value with it, while the control's Value property can be associated through the LayerOfValue property with the value of one of the layers within the control.

For instance:

The Change event occurs when the layer's Value property is changed. During the Change event, you can change values of other layers as well. For instance, if the second-hand of the clock is rotated, you can rotate the hour and the minute-hands of the clock as well. The DragStart / Drag / DragEnd events notify your application when a layer is dragged. You can call DragInfo.Debug = -1 during the DragStart event to display debugging information like current movement, rotation angle when drag operation is performed.

The Value property indicates the value keyword in the following properties:

The Value property works in association with the layer's OnDrag property like follows: