# FarPoint.Web.Spread.BaseCellType.GetStringSize

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Spread_BaseCellType_GetStringSize_" data-uid="FarPoint.Web.Spread.BaseCellType.GetStringSize*">GetStringSize Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Spread_BaseCellType_GetStringSize_" data-uid="FarPoint.Web.Spread.BaseCellType.GetStringSize*"></a>
<h4 id="FarPoint_Web_Spread_BaseCellType_GetStringSize_System_String_System_Drawing_Size_System_Single_FarPoint_Web_Spread_Appearance_" data-uid="FarPoint.Web.Spread.BaseCellType.GetStringSize(System.String,System.Drawing.Size,System.Single,FarPoint.Web.Spread.Appearance)">GetStringSize(string, Size, float, Appearance)</h4>
<div class="markdown level1 summary"><p>Gets the size of the text string.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected Size GetStringSize(string s, Size size, float zoomFactor, Appearance appearance)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Function GetStringSize(s As String, size As Size, zoomFactor As Single, appearance As Appearance) As Size</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.string">string</a></td>
      <td><span class="parametername">s</span></td>
      <td><p>Text string</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">Size</span></td>
      <td><span class="parametername">size</span></td>
      <td><p>Size of the text string</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">zoomFactor</span></td>
      <td><p>Numeric value for zoom factor for scaling the display</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.Appearance.html">Appearance</a></td>
      <td><span class="parametername">appearance</span></td>
      <td><p>Appearance settings</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">Size</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
