# GrapeCity.CalcEngine.RichValue-1.TryGetFieldValue

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_CalcEngine_RichValue_1_TryGetFieldValue_" data-uid="GrapeCity.CalcEngine.RichValue`1.TryGetFieldValue*">TryGetFieldValue Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_CalcEngine_RichValue_1_TryGetFieldValue_" data-uid="GrapeCity.CalcEngine.RichValue`1.TryGetFieldValue*"></a>
<h4 id="GrapeCity_CalcEngine_RichValue_1_TryGetFieldValue_System_String_System_Object__" data-uid="GrapeCity.CalcEngine.RichValue`1.TryGetFieldValue(System.String,System.Object@)">TryGetFieldValue(string, out object)</h4>
<div class="markdown level1 summary"><p>Gets the specified field value from this <a class="xref" href="../GrapeCity.CalcEngine/GrapeCity.CalcEngine.IRichValue.html">IRichValue</a> object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool TryGetFieldValue(string name, out object value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function TryGetFieldValue(name As String, ByRef value As Object) 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.string">string</a></td>
      <td><span class="parametername">name</span></td>
      <td><p>The field name.</p>
</td>
    </tr>
    <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 field value.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</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><p>A boolean value indicates whether the field value is returned successful.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="../GrapeCity.CalcEngine/GrapeCity.CalcEngine.IRichValue.TryGetFieldValue.html#GrapeCity_CalcEngine_IRichValue_TryGetFieldValue_System_String_System_Object__">IRichValue.TryGetFieldValue(string, out object)</a></div>


<a id="GrapeCity_CalcEngine_RichValue_1_TryGetFieldValue_" data-uid="GrapeCity.CalcEngine.RichValue`1.TryGetFieldValue*"></a>
<h4 id="GrapeCity_CalcEngine_RichValue_1_TryGetFieldValue_System_Int32_GrapeCity_CalcEngine_CellValue__" data-uid="GrapeCity.CalcEngine.RichValue`1.TryGetFieldValue(System.Int32,GrapeCity.CalcEngine.CellValue@)">TryGetFieldValue(int, ref CellValue)</h4>
<div class="markdown level1 summary"><p>Gets the specified field value from this <a class="xref" href="../GrapeCity.CalcEngine/GrapeCity.CalcEngine.IRichValue.html">IRichValue</a> object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool TryGetFieldValue(int index, ref CellValue result)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function TryGetFieldValue(index As Integer, ByRef result As CellValue) 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.int32">int</a></td>
      <td><span class="parametername">index</span></td>
      <td><p>An integer value indicates the field index.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../GrapeCity.CalcEngine/GrapeCity.CalcEngine.CellValue.html">CellValue</a></td>
      <td><span class="parametername">result</span></td>
      <td><p>An <a class="xref" href="../GrapeCity.CalcEngine/GrapeCity.CalcEngine.CellValue.html">CellValue</a> object indicates the result.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</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><p>A boolean value indicates whether the field value is returned successful.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="../GrapeCity.CalcEngine/GrapeCity.CalcEngine.IRichValue.TryGetFieldValue.html#GrapeCity_CalcEngine_IRichValue_TryGetFieldValue_System_Int32_GrapeCity_CalcEngine_CellValue__">IRichValue.TryGetFieldValue(int, ref CellValue)</a></div>


<a id="GrapeCity_CalcEngine_RichValue_1_TryGetFieldValue_" data-uid="GrapeCity.CalcEngine.RichValue`1.TryGetFieldValue*"></a>
<h4 id="GrapeCity_CalcEngine_RichValue_1_TryGetFieldValue_System_Int32_GrapeCity_CalcEngine_IPrimitiveValue_" data-uid="GrapeCity.CalcEngine.RichValue`1.TryGetFieldValue(System.Int32,GrapeCity.CalcEngine.IPrimitiveValue)">TryGetFieldValue(int, IPrimitiveValue)</h4>
<div class="markdown level1 summary"><p>Gets the specified field value from this <a class="xref" href="../GrapeCity.CalcEngine/GrapeCity.CalcEngine.IRichValue.html">IRichValue</a> object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool TryGetFieldValue(int index, IPrimitiveValue result)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function TryGetFieldValue(index As Integer, result As IPrimitiveValue) 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.int32">int</a></td>
      <td><span class="parametername">index</span></td>
      <td><p>An integer value indicates the field index.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../GrapeCity.CalcEngine/GrapeCity.CalcEngine.IPrimitiveValue.html">IPrimitiveValue</a></td>
      <td><span class="parametername">result</span></td>
      <td><p>An <a class="xref" href="../GrapeCity.CalcEngine/GrapeCity.CalcEngine.IPrimitiveValue.html">IPrimitiveValue</a> object indicates the result.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</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><p>A boolean value indicates whether the field value is returned successful.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="../GrapeCity.CalcEngine/GrapeCity.CalcEngine.IRichValue.TryGetFieldValue.html#GrapeCity_CalcEngine_IRichValue_TryGetFieldValue_System_Int32_GrapeCity_CalcEngine_IPrimitiveValue_">IRichValue.TryGetFieldValue(int, IPrimitiveValue)</a></div>
</div>
