# GrapeCity.SpreadBuilder.DDSheet.SetRowAutoSize

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_SpreadBuilder_DDSheet_SetRowAutoSize_" data-uid="GrapeCity.SpreadBuilder.DDSheet.SetRowAutoSize*">SetRowAutoSize Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_SpreadBuilder_DDSheet_SetRowAutoSize_" data-uid="GrapeCity.SpreadBuilder.DDSheet.SetRowAutoSize*"></a>
<h4 id="GrapeCity_SpreadBuilder_DDSheet_SetRowAutoSize_System_Int32_System_Boolean_" data-uid="GrapeCity.SpreadBuilder.DDSheet.SetRowAutoSize(System.Int32,System.Boolean)">SetRowAutoSize(int, bool)</h4>
<div class="markdown level1 summary"><p>Sets the AutoSize property for the row.<br>
If the value is false, the height of the row may differ from the height of the font.<br>
If the value is true, the height of the row is based directly on the size of the text in the row.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetRowAutoSize(int row, bool flag)</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.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">flag</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_SpreadBuilder_DDSheet_SetRowAutoSize_System_Int32_System_Boolean__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This function sets the fUnsynced bitflag for the Biff Row record.  This flag allows the row height to differ from the font height.</p>
</div>
</div>
