# C1.WPF.RichTextBox.Documents.C1TextRange.FontWeight

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_RichTextBox_Documents_C1TextRange_FontWeight_" data-uid="C1.WPF.RichTextBox.Documents.C1TextRange.FontWeight*">FontWeight Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_RichTextBox_Documents_C1TextRange_FontWeight_" data-uid="C1.WPF.RichTextBox.Documents.C1TextRange.FontWeight*"></a>
<h4 id="C1_WPF_RichTextBox_Documents_C1TextRange_FontWeight" data-uid="C1.WPF.RichTextBox.Documents.C1TextRange.FontWeight">FontWeight</h4>
<div class="markdown level1 summary"><p>Gets or sets the font weight of the runs in the range.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public FontWeight? FontWeight { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property FontWeight As FontWeight?</code></pre>
</div>
<h5 id="C1_WPF_RichTextBox_Documents_C1TextRange_FontWeight_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>When the range is empty, setting this property changes the FontWeight of the text to be written
and getting the FontWeight returns the format of the of the text to be written.
When the selection is not empty, getting this property returns the format of the selection, or null
if the selection has mixed format.</p>
</div>
</div>
