# C1.WPF.RichTextBox.Documents.C1TextElement.GetValue

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_RichTextBox_Documents_C1TextElement_GetValue_" data-uid="C1.WPF.RichTextBox.Documents.C1TextElement.GetValue*">GetValue Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_RichTextBox_Documents_C1TextElement_GetValue_" data-uid="C1.WPF.RichTextBox.Documents.C1TextElement.GetValue*"></a>
<h4 id="C1_WPF_RichTextBox_Documents_C1TextElement_GetValue__1_C1_WPF_RichTextBox_Documents_StyleProperty_" data-uid="C1.WPF.RichTextBox.Documents.C1TextElement.GetValue``1(C1.WPF.RichTextBox.Documents.StyleProperty)">GetValue&lt;T&gt;(StyleProperty)</h4>
<div class="markdown level1 summary"><p>Returns the value of a style property for this <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextElement.html">C1TextElement</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public T GetValue&lt;T&gt;(StyleProperty prop)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetValue(Of T)(prop As StyleProperty) As T</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">prop</span></td>
      <td><p>A <a class="xref" href="C1.WPF.RichTextBox.Documents.StyleProperty.html">StyleProperty</a>.</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><span class="xref">T</span></td>
      <td><p>The value of a style property for this <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextElement.html">C1TextElement</a>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="parametername">T</span></td>
      <td><p>The type of the values of the parameter style property.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
