# C1.C1Preview.RenderObject.GetAmbientPropValueForChild

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_RenderObject_GetAmbientPropValueForChild_" data-uid="C1.C1Preview.RenderObject.GetAmbientPropValueForChild*">GetAmbientPropValueForChild Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_RenderObject_GetAmbientPropValueForChild_" data-uid="C1.C1Preview.RenderObject.GetAmbientPropValueForChild*"></a>
<h4 id="C1_C1Preview_RenderObject_GetAmbientPropValueForChild_C1_C1Preview_RenderObject_System_Int32_C1_C1Preview_Scripting_IScriptContext_" data-uid="C1.C1Preview.RenderObject.GetAmbientPropValueForChild(C1.C1Preview.RenderObject,System.Int32,C1.C1Preview.Scripting.IScriptContext)">GetAmbientPropValueForChild(RenderObject, int, IScriptContext)</h4>
<div class="markdown level1 summary"><p>Gets the value of a child's ambient style property.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected virtual object GetAmbientPropValueForChild(RenderObject roChild, int propKey, IScriptContext context)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overridable Function GetAmbientPropValueForChild(roChild As RenderObject, propKey As Integer, context As IScriptContext) As Object</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="C1.C1Preview.RenderObject.html">RenderObject</a></td>
      <td><span class="parametername">roChild</span></td>
      <td><p>The child <a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">propKey</span></td>
      <td><p>The style property key.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">IScriptContext</span></td>
      <td><span class="parametername">context</span></td>
      <td><p><span class="xref">C1.C1Preview.Scripting.IScriptContext</span> to use for evaluation of calculated properties.</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.object">object</a></td>
      <td><p>The style property value.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
