[]
        
(Showing Draft Content)

C1.Win.Gauge.C1GaugePointer.UpdateValue

UpdateValue Method

UpdateValue(double, double)

Updates the pointer's Value with the number nearest 'newValue' that is the multiple of the snapping interval ('snapInterval').

Declaration
public void UpdateValue(double newValue, double snapInterval)
Parameters
Type Name Description
double newValue
double snapInterval
Remarks

If the Gauge uses logarithmic scale the snapping interval is expected to be in logarithmic coordinates. If not, the 'snapInterval' parameter must be in the same scale as the pointer's Value.

UpdateValue(double, double, double)

Updates the pointer's Value with the number nearest 'newValue' that is the multiple of the snapping interval ('snapInterval') counting from the given origin ('snapOrigin').

Declaration
public void UpdateValue(double newValue, double snapInterval, double snapOrigin)
Parameters
Type Name Description
double newValue
double snapInterval
double snapOrigin
Remarks

If the Gauge uses logarithmic scale the snapInterval and snapOrigin values are expected to be in logarithmic coordinates. If not, these values must be in the same scale as the pointer's Value.