# C1.WPF.RichTextBox.Documents.C1TextElementStyle.Add

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_RichTextBox_Documents_C1TextElementStyle_Add_" data-uid="C1.WPF.RichTextBox.Documents.C1TextElementStyle.Add*">Add Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_RichTextBox_Documents_C1TextElementStyle_Add_" data-uid="C1.WPF.RichTextBox.Documents.C1TextElementStyle.Add*"></a>
<h4 id="C1_WPF_RichTextBox_Documents_C1TextElementStyle_Add_C1_WPF_RichTextBox_Documents_C1TextElementStyle_" data-uid="C1.WPF.RichTextBox.Documents.C1TextElementStyle.Add(C1.WPF.RichTextBox.Documents.C1TextElementStyle)">Add(C1TextElementStyle)</h4>
<div class="markdown level1 summary"><p>Adds all of the values from another <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextElementStyle.html">C1TextElementStyle</a> to this one.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Add(C1TextElementStyle style)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Add(style As C1TextElementStyle)</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.WPF.RichTextBox.Documents.C1TextElementStyle.html">C1TextElementStyle</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>The <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextElementStyle.html">C1TextElementStyle</a> where to take the values from.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_RichTextBox_Documents_C1TextElementStyle_Add_" data-uid="C1.WPF.RichTextBox.Documents.C1TextElementStyle.Add*"></a>
<h4 id="C1_WPF_RichTextBox_Documents_C1TextElementStyle_Add_C1_WPF_RichTextBox_Documents_StyleProperty_System_Object_" data-uid="C1.WPF.RichTextBox.Documents.C1TextElementStyle.Add(C1.WPF.RichTextBox.Documents.StyleProperty,System.Object)">Add(StyleProperty, object)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Add(StyleProperty key, object value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Add(key As StyleProperty, value 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.WPF.RichTextBox.Documents.StyleProperty.html">StyleProperty</a></td>
      <td><span class="parametername">key</span></td>
      <td></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></td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.idictionary-2.add">IDictionary&lt;TKey, TValue&gt;.Add(TKey, TValue)</a></div>


<a id="C1_WPF_RichTextBox_Documents_C1TextElementStyle_Add_" data-uid="C1.WPF.RichTextBox.Documents.C1TextElementStyle.Add*"></a>
<h4 id="C1_WPF_RichTextBox_Documents_C1TextElementStyle_Add_System_Collections_Generic_KeyValuePair_C1_WPF_RichTextBox_Documents_StyleProperty_System_Object__" data-uid="C1.WPF.RichTextBox.Documents.C1TextElementStyle.Add(System.Collections.Generic.KeyValuePair{C1.WPF.RichTextBox.Documents.StyleProperty,System.Object})">Add(KeyValuePair&lt;StyleProperty, object&gt;)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Add(KeyValuePair&lt;StyleProperty, object&gt; item)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Add(item As KeyValuePair(Of StyleProperty, 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="https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2">KeyValuePair</a>&lt;<a class="xref" href="C1.WPF.RichTextBox.Documents.StyleProperty.html">StyleProperty</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</td>
      <td><span class="parametername">item</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1.add">ICollection&lt;T&gt;.Add(T)</a></div>


<a id="C1_WPF_RichTextBox_Documents_C1TextElementStyle_Add_" data-uid="C1.WPF.RichTextBox.Documents.C1TextElementStyle.Add*"></a>
<h4 id="C1_WPF_RichTextBox_Documents_C1TextElementStyle_Add_System_Object_System_Object_" data-uid="C1.WPF.RichTextBox.Documents.C1TextElementStyle.Add(System.Object,System.Object)">Add(object, object)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Add(object key, object value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Add(key As Object, value 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="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">key</span></td>
      <td></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></td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.idictionary.add">IDictionary.Add(object, object)</a></div>
</div>
