# C1.C1Preview.RenderObject.AssignFrom

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_RenderObject_AssignFrom_" data-uid="C1.C1Preview.RenderObject.AssignFrom*">AssignFrom Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_RenderObject_AssignFrom_" data-uid="C1.C1Preview.RenderObject.AssignFrom*"></a>
<h4 id="C1_C1Preview_RenderObject_AssignFrom_C1_C1Preview_RenderObject_System_Boolean_System_Boolean_" data-uid="C1.C1Preview.RenderObject.AssignFrom(C1.C1Preview.RenderObject,System.Boolean,System.Boolean)">AssignFrom(RenderObject, bool, bool)</h4>
<div class="markdown level1 summary"><p>Assigns (copies) properties from another <a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a> to the current object.
The list of fragments (the <a class="xref" href="C1.C1Preview.RenderObject.Fragments.html#C1_C1Preview_RenderObject_Fragments">Fragments</a> property) is neither copied nor changed.
Properties <a class="xref" href="C1.C1Preview.RenderObject.UserData.html#C1_C1Preview_RenderObject_UserData">UserData</a>, <a class="xref" href="C1.C1Preview.RenderObject.PageNumberingChange.html#C1_C1Preview_RenderObject_PageNumberingChange">PageNumberingChange</a> are copied by reference.
The <a class="xref" href="C1.C1Preview.RenderObject.Name.html#C1_C1Preview_RenderObject_Name">Name</a> property is not copied.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void AssignFrom(RenderObject source, bool assignDataBinding, bool assignChildren)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub AssignFrom(source As RenderObject, assignDataBinding As Boolean, assignChildren 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="C1.C1Preview.RenderObject.html">RenderObject</a></td>
      <td><span class="parametername">source</span></td>
      <td><p>The source object to copy properties from.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">assignDataBinding</span></td>
      <td><p>Indicates whether the <a class="xref" href="C1.C1Preview.RenderObject.DataBinding.html#C1_C1Preview_RenderObject_DataBinding">DataBinding</a> property should be copied.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">assignChildren</span></td>
      <td><p>Indicates whether the elements of the <a class="xref" href="C1.C1Preview.RenderObject.Children.html#C1_C1Preview_RenderObject_Children">Children</a> collection should be copied.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_RenderObject_AssignFrom_" data-uid="C1.C1Preview.RenderObject.AssignFrom*"></a>
<h4 id="C1_C1Preview_RenderObject_AssignFrom_C1_C1Preview_RenderObject_System_Boolean_System_Boolean_System_Boolean_System_Boolean_" data-uid="C1.C1Preview.RenderObject.AssignFrom(C1.C1Preview.RenderObject,System.Boolean,System.Boolean,System.Boolean,System.Boolean)">AssignFrom(RenderObject, bool, bool, bool, bool)</h4>
<div class="markdown level1 summary"><p>Assigns (copies) properties from another <a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a> to the current object.
The list of fragments (the <a class="xref" href="C1.C1Preview.RenderObject.Fragments.html#C1_C1Preview_RenderObject_Fragments">Fragments</a> property) is neither copied nor changed.
Properties <a class="xref" href="C1.C1Preview.RenderObject.UserData.html#C1_C1Preview_RenderObject_UserData">UserData</a>, <a class="xref" href="C1.C1Preview.RenderObject.PageNumberingChange.html#C1_C1Preview_RenderObject_PageNumberingChange">PageNumberingChange</a> are copied by reference.
The <a class="xref" href="C1.C1Preview.RenderObject.Name.html#C1_C1Preview_RenderObject_Name">Name</a> property is not copied.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void AssignFrom(RenderObject source, bool assignDataBinding, bool assignChildren, bool assignAnchors, bool assignHyperlink)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub AssignFrom(source As RenderObject, assignDataBinding As Boolean, assignChildren As Boolean, assignAnchors As Boolean, assignHyperlink 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="C1.C1Preview.RenderObject.html">RenderObject</a></td>
      <td><span class="parametername">source</span></td>
      <td><p>The source object to copy properties from.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">assignDataBinding</span></td>
      <td><p>Indicates whether the <a class="xref" href="C1.C1Preview.RenderObject.DataBinding.html#C1_C1Preview_RenderObject_DataBinding">DataBinding</a> property should be copied.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">assignChildren</span></td>
      <td><p>Indicates whether the elements of the <a class="xref" href="C1.C1Preview.RenderObject.Children.html#C1_C1Preview_RenderObject_Children">Children</a> collection should be copied.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">assignAnchors</span></td>
      <td><p>Indicates whether the elements of the <a class="xref" href="C1.C1Preview.RenderObject.Anchors.html#C1_C1Preview_RenderObject_Anchors">Anchors</a> collection should be copied.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">assignHyperlink</span></td>
      <td><p>Indicates whether the <a class="xref" href="C1.C1Preview.RenderObject.Hyperlink.html#C1_C1Preview_RenderObject_Hyperlink">Hyperlink</a> property should be copied.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_RenderObject_AssignFrom_" data-uid="C1.C1Preview.RenderObject.AssignFrom*"></a>
<h4 id="C1_C1Preview_RenderObject_AssignFrom_C1_C1Preview_RenderObject_System_Boolean_System_Boolean_System_Boolean_System_Boolean_System_Boolean_System_Boolean_" data-uid="C1.C1Preview.RenderObject.AssignFrom(C1.C1Preview.RenderObject,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean)">AssignFrom(RenderObject, bool, bool, bool, bool, bool, bool)</h4>
<div class="markdown level1 summary"><p>Assigns (copies) properties from another <a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a> to the current object.
The list of fragments (the <a class="xref" href="C1.C1Preview.RenderObject.Fragments.html#C1_C1Preview_RenderObject_Fragments">Fragments</a> property) is neither copied nor changed.
Properties <a class="xref" href="C1.C1Preview.RenderObject.UserData.html#C1_C1Preview_RenderObject_UserData">UserData</a>, <a class="xref" href="C1.C1Preview.RenderObject.PageNumberingChange.html#C1_C1Preview_RenderObject_PageNumberingChange">PageNumberingChange</a> are copied by reference.
The <a class="xref" href="C1.C1Preview.RenderObject.Name.html#C1_C1Preview_RenderObject_Name">Name</a> property is not copied.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual void AssignFrom(RenderObject source, bool assignDataBinding, bool assignChildren, bool assignAnchors, bool assignHyperlink, bool assignName, bool assignStyle)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Sub AssignFrom(source As RenderObject, assignDataBinding As Boolean, assignChildren As Boolean, assignAnchors As Boolean, assignHyperlink As Boolean, assignName As Boolean, assignStyle 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="C1.C1Preview.RenderObject.html">RenderObject</a></td>
      <td><span class="parametername">source</span></td>
      <td><p>The source object to copy properties from.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">assignDataBinding</span></td>
      <td><p>Indicates whether the <a class="xref" href="C1.C1Preview.RenderObject.DataBinding.html#C1_C1Preview_RenderObject_DataBinding">DataBinding</a> property should be copied.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">assignChildren</span></td>
      <td><p>Indicates whether the elements of the <a class="xref" href="C1.C1Preview.RenderObject.Children.html#C1_C1Preview_RenderObject_Children">Children</a> collection should be copied.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">assignAnchors</span></td>
      <td><p>Indicates whether the elements of the <a class="xref" href="C1.C1Preview.RenderObject.Anchors.html#C1_C1Preview_RenderObject_Anchors">Anchors</a> collection should be copied.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">assignHyperlink</span></td>
      <td><p>Indicates whether the <a class="xref" href="C1.C1Preview.RenderObject.Hyperlink.html#C1_C1Preview_RenderObject_Hyperlink">Hyperlink</a> property should be copied.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">assignName</span></td>
      <td><p>Indicates whether the <a class="xref" href="C1.C1Preview.RenderObject.Name.html#C1_C1Preview_RenderObject_Name">Name</a> property should be copied.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">assignStyle</span></td>
      <td><p>Indicates whether the <a class="xref" href="C1.C1Preview.RenderObject.Style.html#C1_C1Preview_RenderObject_Style">Style</a> property should be copied.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_RenderObject_AssignFrom_" data-uid="C1.C1Preview.RenderObject.AssignFrom*"></a>
<h4 id="C1_C1Preview_RenderObject_AssignFrom_C1_C1Preview_RenderObject_" data-uid="C1.C1Preview.RenderObject.AssignFrom(C1.C1Preview.RenderObject)">AssignFrom(RenderObject)</h4>
<div class="markdown level1 summary"><p>Assigns (copies) properties from another <a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a> to the current object.
The list of fragments (the <a class="xref" href="C1.C1Preview.RenderObject.Fragments.html#C1_C1Preview_RenderObject_Fragments">Fragments</a> property) is neither copied nor changed.
Properties <a class="xref" href="C1.C1Preview.RenderObject.UserData.html#C1_C1Preview_RenderObject_UserData">UserData</a>, <a class="xref" href="C1.C1Preview.RenderObject.PageNumberingChange.html#C1_C1Preview_RenderObject_PageNumberingChange">PageNumberingChange</a> are copied by reference.
The <a class="xref" href="C1.C1Preview.RenderObject.Name.html#C1_C1Preview_RenderObject_Name">Name</a> property is not copied.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void AssignFrom(RenderObject source)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub AssignFrom(source As RenderObject)</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">source</span></td>
      <td><p>The source object to copy properties from.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
