# GrapeCity.Documents.Excel.PrintManager.GetShrinkToFitFontSize

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Excel_PrintManager_GetShrinkToFitFontSize_" data-uid="GrapeCity.Documents.Excel.PrintManager.GetShrinkToFitFontSize*">GetShrinkToFitFontSize Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Excel_PrintManager_GetShrinkToFitFontSize_" data-uid="GrapeCity.Documents.Excel.PrintManager.GetShrinkToFitFontSize*"></a>
<h4 id="GrapeCity_Documents_Excel_PrintManager_GetShrinkToFitFontSize_GrapeCity_Documents_Excel_IRange_GrapeCity_Documents_Excel_PdfSaveOptions_" data-uid="GrapeCity.Documents.Excel.PrintManager.GetShrinkToFitFontSize(GrapeCity.Documents.Excel.IRange,GrapeCity.Documents.Excel.PdfSaveOptions)">GetShrinkToFitFontSize(IRange, PdfSaveOptions)</h4>
<div class="markdown level1 summary"><p>Gets the best shrink-to-fit font size of the upper-left cell.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public double GetShrinkToFitFontSize(IRange range, PdfSaveOptions options)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetShrinkToFitFontSize(range As IRange, options As PdfSaveOptions) As Double</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="GrapeCity.Documents.Excel.IRange.html">IRange</a></td>
      <td><span class="parametername">range</span></td>
      <td><p>The range to be printed.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Excel.PdfSaveOptions.html">PdfSaveOptions</a></td>
      <td><span class="parametername">options</span></td>
      <td><p>Options for saving pdf file.</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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><p>The font size to apply for shrinking text to fit within the range.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
