# C1.Win.Gauge.C1GaugePointer.UpdateValue

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Gauge_C1GaugePointer_UpdateValue_" data-uid="C1.Win.Gauge.C1GaugePointer.UpdateValue*">UpdateValue Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Gauge_C1GaugePointer_UpdateValue_" data-uid="C1.Win.Gauge.C1GaugePointer.UpdateValue*"></a>
<h4 id="C1_Win_Gauge_C1GaugePointer_UpdateValue_System_Double_System_Double_" data-uid="C1.Win.Gauge.C1GaugePointer.UpdateValue(System.Double,System.Double)">UpdateValue(double, double)</h4>
<div class="markdown level1 summary"><p>Updates the pointer's <a class="xref" href="C1.Win.Gauge.C1GaugePointer.Value.html#C1_Win_Gauge_C1GaugePointer_Value">Value</a> with the number nearest 'newValue'
that is the multiple of the snapping interval ('snapInterval').</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void UpdateValue(double newValue, double snapInterval)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub UpdateValue(newValue As Double, snapInterval As Double)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">newValue</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">snapInterval</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_Gauge_C1GaugePointer_UpdateValue_System_Double_System_Double__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>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 <a class="xref" href="C1.Win.Gauge.C1GaugePointer.Value.html#C1_Win_Gauge_C1GaugePointer_Value">Value</a>.</p>
</div>


<a id="C1_Win_Gauge_C1GaugePointer_UpdateValue_" data-uid="C1.Win.Gauge.C1GaugePointer.UpdateValue*"></a>
<h4 id="C1_Win_Gauge_C1GaugePointer_UpdateValue_System_Double_System_Double_System_Double_" data-uid="C1.Win.Gauge.C1GaugePointer.UpdateValue(System.Double,System.Double,System.Double)">UpdateValue(double, double, double)</h4>
<div class="markdown level1 summary"><p>Updates the pointer's <a class="xref" href="C1.Win.Gauge.C1GaugePointer.Value.html#C1_Win_Gauge_C1GaugePointer_Value">Value</a> with the number nearest 'newValue'
that is the multiple of the snapping interval ('snapInterval') counting
from the given origin ('snapOrigin').</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void UpdateValue(double newValue, double snapInterval, double snapOrigin)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub UpdateValue(newValue As Double, snapInterval As Double, snapOrigin As Double)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">newValue</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">snapInterval</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">snapOrigin</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_Gauge_C1GaugePointer_UpdateValue_System_Double_System_Double_System_Double__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>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 <a class="xref" href="C1.Win.Gauge.C1GaugePointer.Value.html#C1_Win_Gauge_C1GaugePointer_Value">Value</a>.</p>
</div>
</div>
