# GrapeCity.CalcEngine.IPrimitiveValue.SetValue

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_CalcEngine_IPrimitiveValue_SetValue_" data-uid="GrapeCity.CalcEngine.IPrimitiveValue.SetValue*">SetValue Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_CalcEngine_IPrimitiveValue_SetValue_" data-uid="GrapeCity.CalcEngine.IPrimitiveValue.SetValue*"></a>
<h4 id="GrapeCity_CalcEngine_IPrimitiveValue_SetValue_GrapeCity_CalcEngine_IEvaluationContext_System_Double_" data-uid="GrapeCity.CalcEngine.IPrimitiveValue.SetValue(GrapeCity.CalcEngine.IEvaluationContext,System.Double)">SetValue(IEvaluationContext, double)</h4>
<div class="markdown level1 summary"><p>Sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a> value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void SetValue(IEvaluationContext context, double value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub SetValue(context As IEvaluationContext, value 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="GrapeCity.CalcEngine.IEvaluationContext.html">IEvaluationContext</a></td>
      <td><span class="parametername">context</span></td>
      <td><p>An <span class="xref">GrapeCity.CalcEngine.EvaluationContext</span> object indicates the evaluation context.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a> value to set.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_CalcEngine_IPrimitiveValue_SetValue_" data-uid="GrapeCity.CalcEngine.IPrimitiveValue.SetValue*"></a>
<h4 id="GrapeCity_CalcEngine_IPrimitiveValue_SetValue_System_Object_System_Boolean_" data-uid="GrapeCity.CalcEngine.IPrimitiveValue.SetValue(System.Object,System.Boolean)">SetValue(object, bool)</h4>
<div class="markdown level1 summary"><p>Sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a> value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void SetValue(object value, bool directValue = false)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub SetValue(value As Object, Optional directValue As Boolean = False)</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.object">object</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a> value to set.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">directValue</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_CalcEngine_IPrimitiveValue_SetValue_" data-uid="GrapeCity.CalcEngine.IPrimitiveValue.SetValue*"></a>
<h4 id="GrapeCity_CalcEngine_IPrimitiveValue_SetValue_GrapeCity_CalcEngine_CalcError_" data-uid="GrapeCity.CalcEngine.IPrimitiveValue.SetValue(GrapeCity.CalcEngine.CalcError)">SetValue(CalcError)</h4>
<div class="markdown level1 summary"><p>Sets the <a class="xref" href="GrapeCity.CalcEngine.CalcError.html">CalcError</a> value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void SetValue(CalcError value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub SetValue(value As CalcError)</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="GrapeCity.CalcEngine.CalcError.html">CalcError</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The <a class="xref" href="GrapeCity.CalcEngine.CalcError.html">CalcError</a> value to set.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_CalcEngine_IPrimitiveValue_SetValue_" data-uid="GrapeCity.CalcEngine.IPrimitiveValue.SetValue*"></a>
<h4 id="GrapeCity_CalcEngine_IPrimitiveValue_SetValue_GrapeCity_CalcEngine_IEvaluationContext_System_String_" data-uid="GrapeCity.CalcEngine.IPrimitiveValue.SetValue(GrapeCity.CalcEngine.IEvaluationContext,System.String)">SetValue(IEvaluationContext, string)</h4>
<div class="markdown level1 summary"><p>Sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void SetValue(IEvaluationContext context, string value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub SetValue(context As IEvaluationContext, value As String)</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="GrapeCity.CalcEngine.IEvaluationContext.html">IEvaluationContext</a></td>
      <td><span class="parametername">context</span></td>
      <td><p>An <span class="xref">GrapeCity.CalcEngine.EvaluationContext</span> object indicates the evaluation context.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value to set.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_CalcEngine_IPrimitiveValue_SetValue_" data-uid="GrapeCity.CalcEngine.IPrimitiveValue.SetValue*"></a>
<h4 id="GrapeCity_CalcEngine_IPrimitiveValue_SetValue_System_Boolean_" data-uid="GrapeCity.CalcEngine.IPrimitiveValue.SetValue(System.Boolean)">SetValue(bool)</h4>
<div class="markdown level1 summary"><p>Sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a> value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void SetValue(bool value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub SetValue(value As Boolean)</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.boolean">bool</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a> value to set.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_CalcEngine_IPrimitiveValue_SetValue_" data-uid="GrapeCity.CalcEngine.IPrimitiveValue.SetValue*"></a>
<h4 id="GrapeCity_CalcEngine_IPrimitiveValue_SetValue_System_DateTime_" data-uid="GrapeCity.CalcEngine.IPrimitiveValue.SetValue(System.DateTime)">SetValue(DateTime)</h4>
<div class="markdown level1 summary"><p>Sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void SetValue(DateTime value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub SetValue(value As Date)</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.datetime">DateTime</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> value to set.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_CalcEngine_IPrimitiveValue_SetValue_" data-uid="GrapeCity.CalcEngine.IPrimitiveValue.SetValue*"></a>
<h4 id="GrapeCity_CalcEngine_IPrimitiveValue_SetValue_System_TimeSpan_" data-uid="GrapeCity.CalcEngine.IPrimitiveValue.SetValue(System.TimeSpan)">SetValue(TimeSpan)</h4>
<div class="markdown level1 summary"><p>Sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.timespan">TimeSpan</a> value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void SetValue(TimeSpan value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub SetValue(value As TimeSpan)</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.timespan">TimeSpan</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.timespan">TimeSpan</a> value to set.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
