# C1.C1Preview.Style.AssignNonInheritedFrom

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_Style_AssignNonInheritedFrom_" data-uid="C1.C1Preview.Style.AssignNonInheritedFrom*">AssignNonInheritedFrom Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_Style_AssignNonInheritedFrom_" data-uid="C1.C1Preview.Style.AssignNonInheritedFrom*"></a>
<h4 id="C1_C1Preview_Style_AssignNonInheritedFrom_C1_C1Preview_Style_" data-uid="C1.C1Preview.Style.AssignNonInheritedFrom(C1.C1Preview.Style)">AssignNonInheritedFrom(Style)</h4>
<div class="markdown level1 summary"><p>Copies to the current style all properties of another <a class="xref" href="C1.C1Preview.Style.html">Style</a> object
that have been explicitly set on that other style,
plus the values of the <a class="xref" href="C1.C1Preview.Style.Parent.html#C1_C1Preview_Style_Parent">Parent</a> and <a class="xref" href="C1.C1Preview.Style.AmbientParent.html#C1_C1Preview_Style_AmbientParent">AmbientParent</a> properties.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void AssignNonInheritedFrom(Style source)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub AssignNonInheritedFrom(source As Style)</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.Style.html">Style</a></td>
      <td><span class="parametername">source</span></td>
      <td><p>The source <a class="xref" href="C1.C1Preview.Style.html">Style</a> object to copy properties from.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_C1Preview_Style_AssignNonInheritedFrom_C1_C1Preview_Style__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Effectively, this method makes the current <a class="xref" href="C1.C1Preview.Style.html">Style</a>
a complete copy of the <code class="paramref">source</code> style.</p>
</div>
</div>
