# C1.WPF.RichTextBox.C1FitWidthTool

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_RichTextBox_C1FitWidthTool" data-uid="C1.WPF.RichTextBox.C1FitWidthTool" class="text-break">C1FitWidthTool Class
</h1>
  <div class="markdown level0 summary"><p>Toolbar button that zooms the document so that the width of the page matches the width of the viewport.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="C1.WPF.RichTextBox.C1ButtonTool.html">C1ButtonTool</a></div>
    <div class="level2"><span class="xref">C1FitWidthTool</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.RichTextBox.html">C1.WPF.RichTextBox</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.RichTextBox.Toolbar.4.6.2.dll</h6>
  <h5 id="C1_WPF_RichTextBox_C1FitWidthTool_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1FitWidthTool : C1ButtonTool</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1FitWidthTool
    Inherits C1ButtonTool</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_RichTextBox_C1FitWidthTool__ctor" data-uid="C1.WPF.RichTextBox.C1FitWidthTool.#ctor">
          <a class="xref" href="C1.WPF.RichTextBox.C1FitWidthTool.-ctor.html#C1_WPF_RichTextBox_C1FitWidthTool__ctor">C1FitWidthTool()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.RichTextBox.C1FitWidthTool.html">C1FitWidthTool</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_RichTextBox_C1FitWidthTool_Do_C1_WPF_RichTextBox_Documents_C1TextRange_" data-uid="C1.WPF.RichTextBox.C1FitWidthTool.Do(C1.WPF.RichTextBox.Documents.C1TextRange)">
          <a class="xref" href="C1.WPF.RichTextBox.C1FitWidthTool.Do.html#C1_WPF_RichTextBox_C1FitWidthTool_Do_C1_WPF_RichTextBox_Documents_C1TextRange_">Do(C1TextRange)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
