Gauges for WinForms | ComponentOne
C1.Win.C1Gauge.4.5.2 Assembly / C1.Win.C1Gauge Namespace / C1GaugePointer Class / UpdateValue Method / UpdateValue(Double,Double) Method

In This Topic
    UpdateValue(Double,Double) Method
    In This Topic
    Updates the pointer's Value with the number nearest 'newValue' that is the multiple of the snapping interval ('snapInterval').
    Syntax
    'Declaration
     
    Public Overloads Sub UpdateValue( _
       ByVal newValue As System.Double, _
       ByVal snapInterval As System.Double _
    ) 
    public void UpdateValue( 
       System.double newValue,
       System.double snapInterval
    )

    Parameters

    newValue
    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.
    See Also